Not recognizing known sRGB profile that has

eclipseandroid studio一直卡在报libpng warning: iCCP: Not recognizing known sRGB profile that has been edited错误上,网上搜索的教程都是简单的说用工具转换,操做步骤不太仔细,通过屡次实践终于把这个问题解决。php

详细步骤:linux

一、下载ImageMagick-7.0.2-2-Q16-x64-dll.exe(windows下下载带dll的包)android

http://www.imagemagick.org/script/binary-releases.php#windowswindows

二、安装ImageMagick,记得必定要打勾Associate supported file extensions with ImageMagickInstall legacy utilities(e.g. convert),否则后面会提示找不到convert.exeeclipse

三、drawable目录下(即pro\src\main\res新建run.bat,内容以下:工具

set fn=C:\Program Files\ImageMagick-7.0.2-Q16\convert.exe 

#windows
for /f "tokens=*" %i in ('dir/s/b *.png') do "%fn%" "%i" -strip "%i"

#linux
for /f "tokens=*" %%i in ('dir/s/b *.png') do "%fn%" "%%i" -strip "%%i"

pause

四、cmd下执行run.bat,直接直接复制bat内容执行便可。code

相关文章
相关标签/搜索