Install ImageMagick on CentOS/RHEL

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 "" > /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!

Leave a Reply

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.