# libpng-warning-iccp-known-incorrect-srgb-profile 警告问题

64人阅读 评论(0)

Libpng-1.6 is more stringent about checking ICC profiles than previous versions. You can ignore the warning. To get rid of it, remove the iCCP chunk from the PNG image.

Some applications treat warnings as errors; if you are using such an application you do have to remove the chunk. You can do that with any of a variety of PNG editors such as ImageMagick's convert in.png out.png.

To remove the invalid iCCP chunk from all of the PNG files in a folder (directory), you can use ImageMagick's mogrify *.png, provided that your ImageMagick was built with libpng16 (run convert -list format | grep PNG to be sure of that).

If you'd like to find out which files need to be fixed instead of blindly processing all of them, you can run my pngcrush -n -q *.pngwhere the "-n" means don't rewrite the files and "-q" means suppress most of the output except for warnings. Sorry, there's no option yet in pngcrush to suppress everything but the warnings.

Binary Releases of ImageMagick are here

For Android Projects (Android Studio) navigate into res folder.

For example:C:\AndroidProjects\{your_project_folder}\app\src\main\res\drawable-hdpi\mogrify *.png

参照上面语句把Png 格式处理一下就可以了

 

0
0

* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场
个人资料
• 访问：1871次
• 积分：111
• 等级：
• 排名：千里之外
• 原创：9篇
• 转载：5篇
• 译文：0篇
• 评论：0条
文章分类
阅读排行
评论排行