in reply to GIF decomposition

I've used GD.pm to make dynamic images in Perl -- also, you can use the GIMP::FU module to access gimp drawables. It's a bit more work, but ultimately more powerful.