Introduction:

ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPXEXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

**Tested on CentOS and Redhat distributions.

Chances are, ImageMagick is already installed on your computer if you are using some flavor of Unix, but that it is not installed if you are using some form of Windows. In either case, you can type the following to find out.

[~]# identify –version

Version: ImageMagick 6.4.8 2010-03-08 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

If the identify program executes and identifies itself as ImageMagick, you may not need to install ImageMagick from source unless you want to add support for additional image formats or upgrade to a newer version.

For Redhat / CentOS 5.8 i386 RPM

For Redhat / CentOS 5.8 x86_64 RPM

  1. rpm -Uvh ImageMagick-6.7.9-6.i386.rpm
  • If Cpanel/WHM then /scripts/installimagemagick

Installation from unix/linux source

ImageMagick builds on a variety of unix and unix-like operating systems including Linux, Solaris etc.

Download Link: wget http://www.imagemagick.org/download/ImageMagick.tar.gz

$ tar xvfz ImageMagick.tar.gz

$ cd ImageMagick-6.7.9

$ ./configure

$ make && make install

$ ldconfig /usr/local/lib

Check Your Installation

$ /usr/local/bin/convert logo: logo.gif

[~]# identify logo.gif

logo.gif GIF 640×480 640×480+0+0 8-bit PseudoClass 256c 31.7KB 0.000u 0:00.000

[~]# mogrify -resize 640×1200! logo.gif

[~]# identify logo.gif

logo.gif GIF 640×1200 640×1200+0+0 8-bit PseudoClass 256c 94.3KB 0.000u 0:00.000

In above example you can see that we have changed resolution to 640×1200