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

相關文章
相關標籤/搜索