Page 1 of 1

[Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 9:44 am
by ownlyme
I wrote/edited 2 scripts for converting animations (for example gifs) into sprite-sheets
All you need to do is to open the file in gimp and run first the "seperateanimation" script and then the "create from layers" script (under filters->sprite-sheet)
The scripts are installed into C:\Program Files\GIMP 2\share\gimp\2.0\scripts

How to create a gif from a short video
Run ffmpeg with this command:

Code: Select all

.\ffmpeg.exe -i .\input.mp4 -filter_complex "[0:v] split [a][b];[a]palettegen [p];[b][p] paletteuse" .\out.gif
Hope you'll find this useful

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 10:22 am
by darkfrei
Note that gif has alpha as bool, all half transparent shadows will be ugly.

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 10:59 am
by ownlyme
yeah and sometimes you need to switch picture-> mode to rgb before saving or the transparency might end up as a bool.
(i assume you edit the image anyway, applying the transparency yourself)

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 12:23 pm
by darkfrei
Can you make "sprite sheet to gif" tool?

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 12:27 pm
by ownlyme
i don't think so, sorry.
i'm terrible at this gimp scripting language

Re: [Guide/Tools] Creating a sprite-sheet from an animation/video

Posted: Wed May 08, 2019 1:25 pm
by darkfrei
I think that it can be done with ImageMagick, but I don't know how.