原味链接 https://wiki.archlinux.org/index.php/Libpng_errors
Problem
Some changes in libpng 1.6+ cause it issue warning or even not work correctly with the original HP/MS sRGB profile. You will notice this in stderr:
libpng warning: iCCP: known incorrect sRGB profile
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.
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 Profileand set it toRGB workspace(sRGB built-in) -
To change the embedded profile, go to
Image > Mode > Convert to Color Profilewhere 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>
本文介绍了解决LibPNG 1.6+版本中出现的与原始HP/MS sRGB配置文件不兼容的问题。文章提供了两种解决方案:移除嵌入的配置文件或替换为标准的sRGB配置。并详细说明了如何使用GIMP和ImageMagick来实施这些解决方案。
1205

被折叠的 条评论
为什么被折叠?



