Skip to content

image_magick

The simplest way to install ImageMagic is to use ImageMagic Easy Install. However, it may be difficult to completely remove it (uninstall and purge) in later stage.

Profile issue

Libpng-1.6 is more stringent about checking ICC profiles than previous versions; you can ignore the warning.

libpng warning: iCCP: known incorrect sRGB profile

To get rid of it, remove the iCCP chunk from the PNG image. This can be done with Image Magic, by converting the image.

convert in.png out.png

To remove the invalid iCCP chunk from all of the PNG files in a folder (directory), you can use mogrify from ImageMagick:

mogrify *.png

This requires that your ImageMagick was built with libpng16. You can easily check it by running:

convert -list format | grep PNG

If you'd like to find out which files need to be fixed instead of blindly processing all of them, you can run

pngcrush -n -q *.png

where the -n means don't rewrite the files and -q means suppress most of the output except for warnings. Sorry, there's no option yet in pngcrush to suppress everything but the warnings.

Note: You must have pngcrush installed.

Source