自定义批量改变图片大小
发表于:2024-11-25 作者:热门IT资讯网编辑
编辑最后更新 2024年11月25日,批处理代码:set PATH=D:\Desktop\changeIcon\icon 路径set EXE=%PATH%\resize\convert.exeset SRC_IMAGE=%PATH%\ic
批处理代码:
set PATH=D:\Desktop\changeIcon\icon 路径
set EXE=%PATH%\resize\convert.exe
set SRC_IMAGE=%PATH%\icon.png
%EXE% %SRC_IMAGE% -resize 192 %PATH%\android\drawable-xxxhdpi\icon.png
%EXE% %SRC_IMAGE% -resize 144 %PATH%\android\drawable-xxhdpi\icon.png
%EXE% %SRC_IMAGE% -resize 96 %PATH%\android\drawable-xhdpi\icon.png
%EXE% %SRC_IMAGE% -resize 48 %PATH%\android\drawable-mdpi\icon.png
%EXE% %SRC_IMAGE% -resize 32 %PATH%\android\drawable-ldpi\icon.png
%EXE% %SRC_IMAGE% -resize 72 %PATH%\android\drawable-hdpi\icon.png
工具下载:http://down.51cto.com/data/2225108