Code: Select all
for /f "tokens=*" %%a in (dimensions10.txt) do magick convert %filename% -sample %%ax%%a out\%filename%-%%a.png
Code: Select all
magick convert %filename% -channel rgba -alpha on -interpolate Nearest -filter point -define png32:bit-depth=8 -resize %%ax%%a out\%filename%-%%a.png
Interestingly this produces the exact format I want I guess:
Code: Select all
magick convert -size %%ax%%a -interpolate Nearest -filter point -background none -fill purple -gravity center -font Arial-Bold label:"%%a" %%a.png
Other thing, I tried to pack a png into an icon with auto resize which works also with the above filters and everything, loses transparency though.
Also I can't pack bigger than 256px images inside,
and the 256px in the ico is always corrupted when I open it in an editor, I can find no info about controlling the output ico on the documentation.
Please help me.