Upgrade ImageMagick

We will cover how to check which version you use, and how to upgrade..

Let’s first check which version you are using. To do this type the following:

convert -v | head -n 1 | cut -c 22-26

This will return a version, it might be 6.x.x or even maybe 5.x. However, the current version of ImageMagick and the most secure is 6.4.2, so assuming you aren’t using 6.4.2,  the following is how to quickly and easily upgrade.

You will need to determine where your ImageMagick is installed, to do this type:

which convert

This will return a path, on cPanel servers it’ll most likely be either /usr/bin/convert or /usr/local/bin/convert. Keep this setting available as you will need it later. Please remember however, you only want to use /usr or /usr/local/, do not include “bin/convert” in the path.

  1. mkdir /usrc/src
  2. cd /usr/src
  3. wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.2-5.tar.gz
  4. tar xvzf ImageMagick-6.4.2-5.tar.gz
  5. cd ImageMagick-6.4.2
  6. ./configure –prefix=<whatever path currently used>
  7. make
  8. make install
  9. cd PerlMagick
  10. perl Makefile.PL
  11. make
  12. make install

Badda bing. Now do this command again:

convert -v | head -n 1 | cut -c 22-26

Comments are closed.