cocos2d-x 3.0 and libpng

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)

2 Likes

@elvman

Thanks for pointing out it, we will try later.

That is really amazing, problem resolved, Thank you!

hiā€¦ I am having a similar issueā€¦ where do I run this command?

siddharthshekar - you run it from your terminal.

Also, this requires ImageMagick to be pre-installed and included in the PATH variable.

@indygamer - oh, yeah, it would. I take for granted I have it installed.

HomeBrew would work if you didnā€™t want to compile it from source.

hi, I have a issue with my cocos2d-x 3.3 project , ā€œlibpng warning: iCCP: known incorrect sRGB profileā€,but your command is not work ?