Difference between revisions of "Libpng errors"

From ArchWiki
Jump to: navigation, search
(Initial commit, not a ton of info but plenty to get people past the error if they need to.)
 
m (ImageMagick)
Line 8: Line 8:
 
:To change the embedded profile, go to {{ic|Image > Mode > Convert to Color Profile}} where you can choose a profile you already have loaded or load a new one from disk.
 
:To change the embedded profile, go to {{ic|Image > Mode > Convert to Color Profile}} where you can choose a profile you already have loaded or load a new one from disk.
 
==ImageMagick==
 
==ImageMagick==
:To remove the embedded profile, just run {{ic|% convert --strip <filename>}}
+
:To remove the embedded profile, just run {{ic|% convert -strip <input filename> <output filename>}}

Revision as of 17:32, 17 October 2013

Some changes in libpng 1.6+ cause it issue warning or even not work correctly with the original HP/MS sRGB profile. You'll notice this in stderr:
libpng warning: iCCP: known incorrect sRGB profile

The problem

The old profile uses a D50 whitepoint, where D65 is standard. This profile is not uncommon, being used by Adobe Photoshop, although it was not embedded into images by default.

The solution

The simplest solution is simply to remove the embedded profile from your image. This can cause a slight shift in color *IF* have have a properly calibrated system, monitor, and software. If you really need it (say for a print shop), you can alternatively embed a different color profile. If this applies to you, you probably have the profiles you need already.

GIMP

To remove the embedded profile, go to Image > Mode > Assign Color Profile and set it to RGB workspace(sRGB built-in)
To change the embedded profile, go to Image > Mode > Convert to Color Profile where you can choose a profile you already have loaded or load a new one from disk.

ImageMagick

To remove the embedded profile, just run % convert -strip <input filename> <output filename>