Create animations with imagemagick

I’ve considered the tool imagemagick on multiple occasions (it does practically anything you could imagine with images), but finally downloaded and tested it out. Here’s how I created a useless gif animation.

First, generate two gifs.

convert -pointsize 20 -page 50x20 label:Open -append open.gif; \
convert -pointsize 20 -page 50x20 label:Close -append close.gif

Next, combine them together into an animation.

convert -delay 100 -page 50x20 open.gif -page 50x20 close.gif -loop 0 animation.gif

Open up animation.gif in your web browser and, viola, that’s it!