Ahh, I see. Then this bit of code might work: should resize the canvas but keep the image the same and centered.King of Worms wrote: ↑Tue Sep 17, 2019 5:09 pm And this is the image resizer, thats what I wanted to avoid. Because if u resize the image, u loose quality. I resized the canvas around the image, that way the quality is not compromised I used that on things like 1st person weapons, sprites etc.. basically images which have a lot of empty space around them. So you either add or remove few pixels of that empty space, keeping the main image untouched.
Thanks for thinking about it tho, appreciated!
Code: Select all
set size="120x116"
for %%f in (*.png) do convert %%f -background none -gravity center -extent %size% output/%%f