Creating an animated gif/mng from a sprite sheet
Posted: 2012-10-13T02:58:45-07:00
I have a png sprite sheet (8 small frames put in this way: 12345678). I want to convert it to an animated gif and to an animated mng. The sprite sheet is 128x16. I want the frames to be 16x16.
I want to do it by command line, if possible in a single command.
I have tried something like:
convert -crop 16x16 +repage base.png -delay 20 -loop 0 result.gif
but the frames aren't animated "in place" (the animation is showed as: 1......., 12......, 123....., 1234...., 12345..., 123456.., 1234567., 12345678, 1......., where 1...8 are the frames and . is "blank")
Thanks a lot!
I want to do it by command line, if possible in a single command.
I have tried something like:
convert -crop 16x16 +repage base.png -delay 20 -loop 0 result.gif
but the frames aren't animated "in place" (the animation is showed as: 1......., 12......, 123....., 1234...., 12345..., 123456.., 1234567., 12345678, 1......., where 1...8 are the frames and . is "blank")
Thanks a lot!