Creating animated GIFs on Mac – the easy way
I wanted to create an animated GIF from a sequence of static images, and initially I was considering a workflow using Photoshop/Lightroom or purchasing one of the many £2 app on the Mac App Store. However, after my recent successes using the Mac Terminal, I wanted to see if I could form my animated GIFs in a similar fashion.
My Goal: Can ‘I quickly create Animated GIFs on the Mac’
The Short Answer: “Yes:
Using the Terminal:
$ convert -delay 4 -loop 0 *.jpg animation.gif
The Slightly Longer Answer: “Yes”
But, this uses ImageMagick, so to caveat the last part of the title of this post : while it is easy, and quick, and free, and programmable, and relatively easy, it involves more use of the Terminal, and installing a few ancillary applications. So from a risk perspective, if everything works without a hitch you could easily be up and running in under 5 minutes, but of course if things don’t go smoothly, you could be opening pandoras box to a much longer period of Googling and Terminal’ing to get things working (I hope it’s the former).
So first, I needed to install ImageMagick:
After much praise from developers on Twitter, I had uninstalled MacPorts and installed Homebrew as a better Mac package manager:
Guidance on uninstalling MacPorts**: http://guide.macports.org/chunked/installing.macports.uninstalling.html
Then install HomeBrew**: http://brew.sh/
$ ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)”
$ brew doctor
and then use Homebrew to install ImageMagick**:
$ brew install imagemagick
To verify the install:
$ identify -version
and then, from amongst ImageMagick’s numerous plethora of image manipulation commands I used:
$ convert -delay 4 -loop 0 *.jpg animation.gif
** I’d recommend plenty of your own research into installing/using/uninstalling Mac Ports or Homebrew or ImageMagick on your machine before proceeding.
Hat-tip: to this article on Stack Exchange for initially getting me to take the more interesting road: