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

Libpng 1.6在检查ICC配置文件时更严格,出现'iccp-known-incorrect-srgb-profile'警告。可以通过删除PNG图像中的iCCP块来消除警告。可以使用ImageMagick等PNG编辑器来完成。如果希望找出需要修复的文件,可以运行pngcrush工具。对于Android项目,在res文件夹中查找受影响的PNG文件。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值