convert
, which is part of imagemagick
. The easiest way to install it is via Homebrew. In short, you need to first have Homebrew installed via this command:ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
brew install imagemagick
/usr/local/bin/convert -delay 20 -loop 0 '$@' ~/Desktop/animated.gif
animated.gif
will appear on your desktopconvert -help
in Terminal. But for the context of this post, I will just cover the two options I used:-delay 20
is the time in hundredths of a second between frames. Increase or decrease this as desired-loop 0
makes the GIF loop endlessly. Change the number to however many iterations you want.