This script will take an animated GIFs and merge to one file and optimize the Gif by deleting some frames.
This resizes the width to 600px, colors to 32.
Mac:
brew install gifsicle
Ubuntu:
sudo apt update
sudo apt install gifsicle
goma input1.gif input2.gif input3.gif input4.gif
# or
goma ./*.gif
# or
goma ~/path/to/dir/*.gif
shellspec
Shinichi Okada
Please see LICENSE.