I needed a newer version of ImageMagick than is available on the yum packages on Amazon Linux. I tried using the remi repo but it failed with dependency errors. Here is what I did to install ImageMagick with support for PNG, JPG, and TIFF.
download the most recent package
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
uncomress the package
tar -vxf ImageMagick.tar.gz
install the devel packages for png, jpg, tiff. these are dependencies of ImageMagick
sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
configure ImageMagick without X11. this is a server without a display (headless) so we don't need X11
cd ImageMagick
./configure --without-x
make && make install
mission complete.
I'm running Amazon EC2 with AWS Linux on it. I tired the instructions from pdbreen and I'm getting an error right after executing ./configure:
./configure --without-x
Right after that I get this error:
configure: error: in `/var/www/html/ImageMagick-7.0.7-11':
configure: error: no acceptable C compiler found in $PATH
Adding the compiler fixed the issue:
yum install gcc gcc-c++ autoconf automake
Thanks.
PV.