10-24-2024, 07:39 AM
(This post was last modified: 10-24-2024, 07:47 AM by grymmjack.
Edit Reason: added in depth example for spritesheet creation
)
imagemagick convert.
https://imagemagick.org/script/convert.php
example:
replace the *.jpg and output.jpg with your desired formats/filenames.
In the above example, it sets alpha, sets snap for colors (fuzz), sets no fill, fills with transparency, interpolates as nearest (pixelized) and resize to 400%. if you wanted to do this for a batch you'd use:
(or +append) if you want horizontal
https://imagemagick.org/script/convert.php
example:
Code: (Select All)
# horizontal:
convert *.jpg +append output.jpg
# vertical:
convert *.jpg -append output.jpg
replace the *.jpg and output.jpg with your desired formats/filenames.
Code: (Select All)
convert %1.png -alpha set -channel RGBA -fuzz 1%% -fill none -floodfill +0+0 black -interpolate nearest -interpolative-resize 400%% %1-rs.png
In the above example, it sets alpha, sets snap for colors (fuzz), sets no fill, fills with transparency, interpolates as nearest (pixelized) and resize to 400%. if you wanted to do this for a batch you'd use:
Code: (Select All)
convert *.png -alpha set -channel RGBA -fuzz 1%% -fill none -floodfill +0+0 black -interpolate nearest -interpolative-resize 400%% -append spritesheet.png