Image magick extension lets you create and manipulate images. Its function is similar to Image extension but provides more powerful and faster functions.
To use this extension, either "ImageMagick" or "GraphicsMagick" library is required.
Windows binaries may be found at http://snaps.php.net/. To install, download php_imagick.dll to the folder specified by your php.ini file's extension_dir directive. Enable it by adding extension=php_imagick.dll to your php.ini and restarting your webserver.
extension_dir=c:/php5/exts/ extension=php_imagick.dll |
Linux, BSD, and other *nix variants can be compiled using the following steps:
Either:
Run the pear installer for PECL/imagick: pecl install imagick
Copy imagick.so from the directory indicated by the build process to the location specified in your php.ini file under extension_dir.
Add extension=imagick.so to your php.ini
Or:
Set the path to your php.ini via:
pecl config-set php_ini /path/to/php.ini
Run the pear installer for PECL/imagick: pecl install imagick
Restart your webserver to reload your php.ini settings.
Development Versions: There are currently no stable versions of PECL/imagick, to force installation of the beta version of PECL/imagick execute: pecl install imagick-beta
Compiling PECL/imagick without using the PEAR command: Rather than using pecl install imagick to automatically download and install PECL/imagick, you may download the tarball from PECL. From the root of the unpacked tarball, run: phpize && ./configure --enable-imagick && make to generate imagick.so. Once built, continue the installation from step 4 above.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/imagick.
This extension uses the "imagemagick handle" resource.
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.