Summary of ImageMagick Installation

Source: Internet
Author: User
Tags imagemagick
Installation of ImageMagick Summary-general Linux technology-Linux programming and kernel information, the following is a detailed description. I found that the quality of generating and scaling images using the GD library is very poor. I heard that ImageMagick is good and efficient, so I plan to install it. I am not familiar with LINUX, so I spent a lot of effort to install ImageMagick.

First download ImageMagick source code, is: http://www.imagemagick.org/script/download.php

I am the latest version exported from SVN, and the version I installed is 6.3.6.

ImageMagick supports many formats of files, such as commonly used gif, jpeg, png, And tiff. Install the Supported file formats before installing ImageMagick.

Start installation:

./Configure -- prefix =/usr/local/ImageMagick

After configure is executed, check which formats are supported. If the formats you want to support are not detected, it may be that you have not installed it, or its files have not been detected.

I cannot detect jpeg, png, and freetype during installation, but I have already installed these programs in the system, but ImageMagick does not detect them, and I have not found the reason for searching online for a long time, however, some people say that the config. log to find the cause, and then open config. the reason for searching the log file is that the library files and header files of jpeg, png, and freetype are not included. Later, I checked them, you can use LDFLAGS and CCPFLAGS to include library files and header files. For example, if my jpeg source file is in/usr/local/jpeg-6b, freetype is installed in/usr/local/freetype, so Add the following parameters when you execute configure

. /Configure CPPFLAGS = "-I/usr/local/jpeg-6b/include-I/usr/local/freetype/include/freetype2" LDFLAGS = "-L/usr/local/lib-L/usr/local/freetype/lib" -- prefix =/usr/local/ImageMagick

If there is no accident, ImageMagick will detect jpeg and freetype.

Make

Make install

If no problem exists, the installation is successful!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.