Convert sprites to gifs using ImageMagick and this handy python script.
-
Download Script
-
Install ImageMagick on your machine
On OSX:
brew install imagemagick
On Ubuntu/Debian:
sudo apt-get install imagemagick
python sprite2gif.py example/sprite.png
# Output now in example/sprite.gif
You can specify the output file and the dimensions of the sprites if necessary:
python sprite2gif.py infile outfile dimensions
Dimension must be two integers seperated by an x
. Such as 2x2
or 1x5
.