Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for /d %%D in (*) do (
- for %%f in (%%D\*.bmp) do (
- FOR /F "usebackq" %%C ^
- IN (`convert %%f -format "%%[pixel:p{0,0}]" info:`) ^
- DO D:\Soft\ImageMagick\convert.exe %%f -transparent %%C %%f.png
- )
- for %%f in (%%D\*.png) do (
- D:\Soft\ImageMagick\convert.exe %%f -background none -gravity South -extent 160x160 %%f
- )
- FOR %%x IN (0,1,2,3,4,5,6,7) DO (
- FOR %%y IN (1,2,3) DO (
- D:\Soft\ImageMagick\convert.exe convert -background none +append %%D\*%%x_?_%%y.bmp.png %%D\*%%x_??_%%y.bmp.png %%D_%%x_%%y.png
- ))
- FOR %%z IN (0,1,2,3) DO (
- D:\Soft\ImageMagick\convert.exe convert -background none -append %%D_?_%%z.png %%D_%%z.png
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement