Here’s a quick summary to install ImageMagick from source and to handle all the common graphics files:
1) Install necessary libraries for image processing. ImageMagick will rely on these libraries to handle the images.
sudo yum install libjpeg-devel libpng-devel glib2-devel fontconfig-devel zlib-devel libwmf-devel freetype-devel libtiff-devel jasper jasper-devel ghostscript-fonts
jasper and jasper-devel is needed for Jpeg2000. Also ghostscrip-fonts is needed for some components (such as captcha generator).
2) Download the lastest imagemagick from source and install (untar, run ./configure, sudo make, sudo make install) The output of the ./configure command will show all supported file types
3) To validate the supported files format, run
convert -list configure | grep DELEGATES
the result should be something like
> convert -list configure | grep DELEGATES
DELEGATES bzlib fontconfig freetype jpeg jng jp2 lcms png tiff x11 xml wmf zlib
References:
* http://b.lesseverything.com/2007/6/24/setting-up-imagemagick-rmagick-on-redhat-centos
* http://forums.fedoraforum.org/archive/index.php/t-32148.html