iCCP: Not recognizing known sRGB profile that has been edited错误

在Android5.0的源码中编译apk会出现如下的问题
libpng warning: "iCCP: Not recognizing known sRGB profile that has been edited"
原因是新版本的libpng对关于ICCP采用了更严苛的约束
解决方法有三:

降低 libpng
用 imagemagick strip  .png 
不提示warning

这里采用第二种,首先下载imagemagick,由于unix的版本安装麻烦就直接下载windows的
然后用批处理命令strip所有的png

提供命令如下:

set fn=E:\Program Files\ImageMagick-6.9.0-Q16\convert.exe
for /f "tokens=*" %%i in ('dir/s/b *.png') do "%fn%" "%%i" -strip "%%i"

你可能感兴趣的:(iCCP: Not recognizing known sRGB profile that has been edited错误)