Monday, September 22, 2008

Installing Imagemagick on Red Hat

Download the latest ImageMagick. If you need to manipulate jpegs the jpeg libraries may not be installed on your OS by default so you will need to download the jpeg source.

Uninstall the current ImageMagick (if installed):
$ make uninstall
$ make clean

To install the jpeg source:
$ tar -xzvf jpegsrc.vb6.tar.gz
$ cd jpeg-6b
$ ./configure --enable-shared=yes
$ make
$ make install

To install ImageMagick (in this case v 6.4.1 is being used):
$ tar -xzvf ImageMagick-6.4.1-0.tar.gz
$ cd ImageMagic-6.4.1
$ ./configure --enable-shared=yes --disable-static --without-perl
$ make
$ make install

Testing the installation:
$ convert test.jpg -resize 50% half_sized_image.jpg

No comments:

Post a Comment