I am running on Centos on AWS EC2. Yum only has this version of ImageMagick available: 6.7.8-9 2016-06-22 Q16
I had numerous issues with this version and so I have tried to update to the latest: ImageMagick 7.0.2-2 Q16 x86_64 2016-07-03
I first tried to install via the instructions here: http://www.imagemagick.org/script/install-source.php
... but the png dependency was missing.
So I then tried the following:
Code: Select all
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -vxf ImageMagick.tar.gz
sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
cd ImageMagick
./configure --without-x
make
sudo make install
coders/png.c: In function ‘ReadOnePNGImage’:
coders/png.c:2276:8: warning: passing argument 3 of ‘png_set_keep_unknown_chunks’ discards ‘const’ qualifier from pointer target type [enabled by default]
png_set_keep_unknown_chunks(ping, 1, mng_iCCP, 1);
^
In file included from /usr/include/libpng12/png.h:538:0,
from coders/png.c:103:
/usr/include/libpng12/png.h:2587:25: note: expected ‘png_bytep’ but argument is of type ‘const png_byte *’
extern PNG_EXPORT(void, png_set_keep_unknown_chunks) PNGARG((png_structp
^
/usr/include/libpng12/pngconf.h:1542:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^
coders/png.c:2287:3: warning: passing argument 3 of ‘png_set_keep_unknown_chunks’ discards ‘const’ qualifier from pointer target type [enabled by default]
png_set_keep_unknown_chunks(ping, 2, mng_vpAg, 1);
^
In file included from /usr/include/libpng12/png.h:538:0,
from coders/png.c:103:
/usr/include/libpng12/png.h:2587:25: note: expected ‘png_bytep’ but argument is of type ‘const png_byte *’
extern PNG_EXPORT(void, png_set_keep_unknown_chunks) PNGARG((png_structp
^
/usr/include/libpng12/pngconf.h:1542:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^