ImageMagick is a powerful set of image manipulation utilities that you can access through your code to create, edit, and compose bitmap images. Many Web applications use ImageMagick to manipulate images. If you are an experienced programmer, you can use Perl or PHP to access ImageMagick’s convert utility.
You can install ImageMagick using the following steps:
1. Download the latest version of ImageMagick :
ftp://ftp.imagemagick.org/pub/ImageMagick
2. Unzip the downloaded package :
gunzip -c ImageMagick.tar.gz | tar xvf -
3. Enter the extracted folder and execute ./configure followed by “make” and “make install”.
4. After the installation is complete, use the following command to verify the installation
convert-version
Also, do not forget to install the Imagick PECL extension, and that’s what makes it complete. You can install it using the following steps:
( Note: If you have php-pear installed, just run “pecl install imagick” to install the module. I’m giving you the manual steps because sometimes it uses to fail. But still, you can try this first and only follow the steps given below if it didn’t work. )
1. Download the latest version from the following URL – http://pecl.php.net/package/imagick
2. Unzip the downloaded package.
3. Enter the extracted folder and run “phpize” and execute ./configure followed by “make” and “make install”.
Add the extension in the php.ini file and restart Apache.
4. Run the following command to verify the installation.
php -m | grep imagick
So that’s how you install ImageMagick and Imagick PHP modules.