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