libpng warning: iCCP: known incorrect sRGB profile

时间:2023-03-08 17:05:07

参考  http://www.cocos2d-x.org/forums/6/topics/49093 解决


I got the following warnings in console when running your app that uses cocos2d-x 3.0
convert: iCCP: known incorrect sRGB profile 'flash.png' @ warning/png.c/MagickPNGWarningHandler/1830.

If you get similar warnings, try running the following bash command
find . -type f -name "*.png" -exec convert {} -strip {} \;

This will use ImageMagick to strip and fix all png files (usually Photoshop and some other editors create bad iCCP chunks)