How to Install ImageMagic on cPanel EasyApache4

ImageMagick is an open source software that creates, edits, composes, or converts bitmap images. It can read and write images in over 200 formats. We may use ImageMagick commands to resize, rotate, and transform images, adjust image colors, apply various special effects, or draw text, lines, and shapes.The post will help you to install ImageMagick on cPanel server based in EasyApache 4 and for PHP7:

# yum install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl

# /usr/bin/convert –version

# /opt/cpanel/ea-php70/root/usr/bin/pecl install imagick

# vi /opt/cpanel/ea-php70/root/etc/php.ini

# Append the line in above file:

# service httpd restart

# /opt/cpanel/ea-php70/root/usr/bin/php -m | grep imagick