Reverse Frames in Sprite Sheet - Imagemagick -
Reverse Frames in Sprite Sheet - Imagemagick -
how reverse frames of sprite sheet each frame of size 30x30 , horizontally aligned using imagemagick?
example:
http://i.stack.imgur.com/oioyc.png ->>> http://i.stack.imgur.com/7wr9v.png (edited)
you can this...
first, create 3 little 30x30 images in red, greenish , blue:
convert -size 30x30! xc:red red.png convert -size 30x30! xc:green green.png convert -size 30x30! xc:blue blue.png
then append them side side:
convert +append red.png green.png blue.png image.png
to this:
now crop 30x30 pixel frames, , reverse order of frames, re-append them output image.
convert -crop 30x30 image.png -reverse +append out.png
note:
for future reference, if wants same thing vertically instead of horizontally, alter +append
-append
.
imagemagick
Comments
Post a Comment