Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.64 KB | None | 0 0
  1. for /d %%D in (*) do (
  2. for %%f in (%%D\*.bmp) do (
  3. FOR /F "usebackq" %%C ^
  4. IN (`convert %%f -format "%%[pixel:p{0,0}]" info:`) ^
  5. DO D:\Soft\ImageMagick\convert.exe %%f -transparent %%C %%f.png  
  6. )
  7.  
  8.  
  9. for %%f in (%%D\*.png) do (
  10.     D:\Soft\ImageMagick\convert.exe %%f -background none -gravity South -extent 160x160 %%f
  11. )
  12.  
  13. FOR %%x IN (0,1,2,3,4,5,6,7) DO (
  14. FOR %%y IN (1,2,3) DO (
  15. D:\Soft\ImageMagick\convert.exe convert -background none +append %%D\*%%x_?_%%y.bmp.png %%D\*%%x_??_%%y.bmp.png %%D_%%x_%%y.png
  16. ))
  17.  
  18. FOR %%z IN (0,1,2,3) DO (
  19. D:\Soft\ImageMagick\convert.exe convert -background none -append %%D_?_%%z.png %%D_%%z.png
  20. )
  21.  
  22. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement