I have a shell scripting request. I haven’t spent much time figuring it out myself yet, but I want to try and convert animated gifs into sprite sheets for use in SDL game development. I know how to break an animated gif into a series of images: convert animation.gif target.png
, but not how to string them together end to end, in a single image file.
Is there a shell command that can help me create a single sprite sheet out of multiple images?
Best Answer
It seems you have ImageMagick binaries installed already, so you can use the following command:
That should create a file named
sprites.png
, with the gif's frames.