Install ImageMagick on CentOS/RHEL
By Anuket Jain On 15 April 2015 In Linux
ImageMagick is a product to make, alter, create, or change over bitmap pictures. It can read and compose pictures in an alternate arrangements like GIF, JPEG, PNG,Postscript, and TIFF. We can likewise utilize ImageMagick to resize, flip, mirror, pivot, mutilate, shear and change pictures.
Step 1: Install Required Packages
First we need to install required packages to install ImageMagic and IMagick PHP extension.
# yum install gcc php-devel php-pear
Step 2: Install ImageMagick
Now we will install ImageMagick using following command.
# yum install ImageMagick ImageMagick-devel
Step 3: Install ImageMagick PHP Extension
You have effectively installed ImageMagick bundle on your system. Presently we have to introduce ImageMagick php extension. Use following command to install ImageMagick php extension.
# pecl install imagick # echo "extension=imagick.so" > /etc/php.d/imagick.ini
Step 4: Restart Apache and Check Extension
Presently we have to reload apache administration to enable php exension to finish the establishment of ImageMagick
# service httpd reload
Enjoy it!