Base asset tools in ImageMagick

Base asset tools in ImageMagick

I wrote a couple tools using ImageMagick to help me work with the base assets, and I figured I'd share them here. Note, I've only tested these in Ubuntu 12.04, but it should work in any Linux distro that has bash 4.0 or newer and a somewhat recent ImageMagick.  I assume it works the same on Mac and Windows (through Cygwin).

This first one takes a spritesheet built on top of the base sprites and turns it into an animated GIF.  Here's the code:

It's used like this:

./ [spritesheet] [GIFoutputname]

And attached is before and after.  Anybody else doing something similar?  Feel free to share!