Tags
centos imagemagick, centos imagemagick installation, ImageMagick, Install imagemagick on centos 6.4, Linux
1. Install needed libraries
sudo yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
2. Create a directory and download source.
mkdir imagemagick
cd /imagemagick
wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.8.6-7.tar.gz
3. Untar the compressed file
tar zxvf ImageMagick-6.8.6-7.tar.gz
cd ImageMagick-6.8.6-7
4. Configure & Make & Install
sudo ./configure –prefix=/usr/ –with-bzlib=yes –with-fontconfig=yes –with-freetype=yes –with-gslib=yes –with-gvc=yes –with-jpeg=yes –with-jp2=yes –with-png=yes –with-tiff=yes
sudo make
sudo make install
5. To test if its running
$which convertĀ should show
/usr/bin/convert
or use below command to check version.
$ /usr/bin/convert –version
Version: ImageMagick 6.8.6-7 2013-07-30 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib freetype gslib jng jpeg png ps tiff zlib
Note: If while using with rails it gives error related to “libMagickCore-6.Q16.so.1” then use below command to fix it.
$sudo ldconfig /usr/local/lib