求关掉“libpng warning: iCCP: known incorrect sRGB profile”的方法

调试的时候总是不停的出现"libpng warning: iCCP: known incorrect sRGB profile", 有什么办法关掉这个警告。

善用搜索引擎
http://www.csdn123.com/html/topnews201408/67/5767.htm

谢谢,这篇文章我看了 不是我像要的,我只是想在调试的时候把这个log输出关掉。不关掉也没什么的,也可以正常跑。

查了一下。 应该在libpng库里面。。

png.c

if (png_sRGB_checks*.is_broken != 0)
{
/* These profiles are known to have bad data that may cause
* problems if they are used, therefore attempt to
* discourage their use, skip the ‘have_md5’ warning below,
* which is made irrelevant by this error.
*/
png_chunk_report(png_ptr, “known incorrect sRGB profile”,
PNG_CHUNK_ERROR);
}

https://github.com/glennrp/libpng/blob/c73d6219f267766ef93fafcd5f8f36c8cae79e17/png.c

谢谢,看来不想看到这个log 的自己编译一个libpng了。

睁一只眼闭一只眼。 就看不到了:7:

这个log是因为新的libpng对图片格式要求更严格,用ImageMagick配合libpng对png图做下处理就可以消除这个warning

有例子吗

有迟到的例子

https://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile/22747902#22747902

https://github.com/cocos2d/cocos2d-x/pull/18908