Install ImageMagick on the centos Server

Source: Internet
Author: User
Tags imagemagick centos server

ImageMagick is a powerful server-side image processing tool, much more powerful than GD. Many PHP websites use ImageMagick as they are widely used.ImageMagick is a powerful, stable, and free tool set and development kit that can be used to read, write, and process image files in over 89 basic formats, popular formats include tiff, JPEG, GIF, PNG, PDF, and photocd. By using ImageMagick, you canProgramTo dynamically generate an image. You can also resize, rotate, sharpen, subtract, or add special effects to one or more images, save the operation results in the same format or other formats. Operations on images can be performed through the command line or through C/C ++, Perl, Java, PHP, Python or Ruby programming. At the same time, ImageMagick provides a high-quality 2D toolkit that partially supports SVG. Currently, imagemagic focuses on performance, bug reduction, and stable API and Abi.


Install ImageMagick on the centos Server:

1,Yum install ImageMagick-devel

2,

CD/usr/local/src

Wget http://pecl.php.net/get/imagick-2.2.0.tgz

Tar-zxvf imagick-2.2.0.tgz

CD imagick-2.2.0

Phpize

./Configure

Make

Make install

3. add extensions to the PHP configuration file

Extension = imagick. So

4. verify whether the installation is successful:

$ Convert logo: logo.gif
$ Identify logo.gif
$ Imdisplay


Official imagemagic http://www.imagemagick.org/script/index.php

Other references:

1,PHP imagemagic magicwand development exampleHttp://www.ioncannon.net/php/61/php-imagemagick-magickwand-examples/

2. http://cn2.php.net/imagick

3. http://www.theperfectarts.com/2012/02/install-imagick-on-linux-server/#.UYteSSvN-1w

4. http://www.chinaz.com/program/2007/0508/8233.shtml

 

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.