ImageMagick is a powerful server-side image processing tool, which is much more powerful than gd. Typically, it supports dynamic gif Processing. MagicWand For PHP can compile ImageMagick into a module that can be loaded by PHP. Of course, it can also be compiled directly into PHP. Here we only introduce module compilation.
MageMagick.tar.gz http://ishare.iask.sina.com.cn/f/11904103.html? From = like
1. ImageMagick Installation
# Tar zxvf ImageMagick.tar.gz
# Cd ImageMagick
#. /Configure LDFLAGS = "-L/usr/lib" CPPFLAGS = "-I/usr/include" -- prefix =/usr/local/ImageMagick -- enable-shared -- enable-lzw
# Make
# Make install
2. Install MagickWand For PHP
# Tar zxvf MagickWandForPHP-1.0.8.tar.gz
# Cd MagickWandForPHP-1.0.8
#. /Configure -- prefix =/usr/local/magickwand -- enable-shared -- with-php-config =/usr/local/php/bin/php-config -- with-magickwand =/ usr/local/ImageMagick/
# Make
# Make install
3. Add the compiled magickwand. so to php. ini, extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613 /"
Extension = "magickwand. so"
Restart the apache server.