How to Install ImageMagick on Cpanel (Linux or Unix Systems)
So you’ve got Vector images on cpanel that arent loading, and want to know how to install ImageMagick on Cpanel? Stick around and read the quick and easy tutorial showing you how.
ImageMagick is an open sourced freeware platform that allows and enables users to read vector images. The software can also code / program over 210 image formats / file types. Some of them include: jpeg,, pdf, dpx, png, postscript, tiff and svg. The steps imagemagick fo through is rotating, distorting, shearing, resizing or even mirring images, gifs and svg’s. You can apply Photoshop effects like lines, ellipses and bending curves.
Guidelines when working with Cpanel ImageMagick
When working with a large number of images, editing them one by one with an image editor such as Gimp or Photoshop can become too tedious, and here’s where ImageMagick can be used to batch process all images in a folder using simple commands. While ImageMagick is an application for working with images, Imagick is a PHP extension to modify/create images through the ImageMagick API. To use ImageMagick with your web applications, Imagick also needs to be installed.
ImageMagick can also be incorporated into shell scripts, batch files, or other programs to automate image preparation for blogs/websites.
Here we show you a few ways to install ImageMagick and Imagick on your cPanel Server…
How to Install ImageMagick
Installation can be performed through the built-in cPanel scripts, YUM or manually.
Installation using Cpanel scripts (Ref – http://linuxsysadminblog.com/2009/05/install-imagemagick-and-imagick-on-cpanel-server/)
First check if it is already installed:
If not present, install ImageMagick:
The application should be installed in a few minutes since other packages required by Imagemagick are also installed. Once the installation is complete, the Imagemagick version that has been installed can be determined using:
You should see something like:
Version: ImageMagick 6.4.8 2009-05-11 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Installing Using YUM
Using YUM is an easy way to get a reasonably current version of ImageMagick installed on your cPanel server to be used by your web applications. This method has the added advantage of allowing ImageMagick to be updated easily through yum when new versions become available in CentOS repositories.
To install ImageMagick on a cPanel server using yum, enter:
yum -y install ImageMagick-devel ImageMagick-c++-devel
All additional dependencies that are required will also be listed along with the version of ImageMagick that is about to be installed. When you are prompted to install, type Y and hit enter.
A manual installation is required if you want to have the absolute latest version. Follow the steps below to manually install ImageMagick.
1) To download the latest version, login to your server via SSH as root and type:
2) Unpack the downloaded files
tar xvfz ImageMagick.tar.gz
3) Configure and compile the installation files:
cd ImageMagick-6.8.6-7 ./configure make
4) After ImageMagick has compiled without any errors, install it on your system:
5) To quickly check if ImageMagick has installed and is running correctly, enter:
/usr/local/bin/convert logo: logo.gif
6) For a more thorough check to see if ImageMagick has installed and is running correctly, run the command below to perform a full test on the installation. If everything has gone well, you should see an “all tests passed” message.
To install Imagick (Ref – http://linuxsysadminblog.com/2009/05/install-imagemagick-and-imagick-on-cpanel-server/)
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). In the box under “Install a PHP Pecl,” type imagick and then click the “Install Now” button – easy!
To view details of the newly-installed Imagick and ImageMagick, restart Apache and go to your phpinfo page (see images below) (Ref- http://linuxsysadminblog.com/2009/05/install-imagemagick-and-imagick-on-cpanel-server/)
Test Your Installation
If the installation has proceeded smoothly, you should now have a running version of ImageMagick. A great way to test this is to install one of the many free PHP gallery applications, such as Gallery 3, Coppermine, and configure the application to use. ImageMagick. These applications should enable this feature with no errors and the gallery should function correctly on the front end if the installation has been successful.
Uninstalling is as simple as installing the application:
To uninstall ImageMagick:
To uninstall Imagick:
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). Click Uninstall for Imagick.
Once you have a clean install of ImageMagick and Imagick, you should be able to process large numbers of images with ease. We hoped you enjoyed this tutorial! If you are new to code in general, we recommend visiting out Coding 101 Series.