Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Created April 29, 2021 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewodri/c19c47d8d5be543892efc2d480500202 to your computer and use it in GitHub Desktop.
Save andrewodri/c19c47d8d5be543892efc2d480500202 to your computer and use it in GitHub Desktop.
Create morphed animated GIF with delay at beginning and end
#!/bin/bash
brew install imagemagick
convert -delay 5 001.jpg 002.png -morph 20 -loop 0 gif:- | convert - \
\( -clone 1 -set delay 300 \) -swap 1 +delete \
\( +clone -set delay 500 \) +swap +delete \
output.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment