Skip to content

Instantly share code, notes, and snippets.

@baoilleach
Last active December 11, 2018 13:00
Show Gist options
  • Save baoilleach/5983218 to your computer and use it in GitHub Desktop.
Save baoilleach/5983218 to your computer and use it in GitHub Desktop.
Create an animated gif to morph between images using ImageMagick
convert CID10033747.png CID9919714.png CID10033747.png -loop 0 -morph 9 -gravity South -annotate 1x1 "%t" -set delay "%[fx:(t%10!=0 || t==n-1)?10:240]" morph.gif
@baoilleach
Copy link
Author

Hi Jack, sorry I missed your comment a while back. Looking at the expression, it seems to be setting a long delay (240ms) if it's every tenth frame and it's not the last frame. My guess is that the "morph 9" is related to the tenth frame business, and that as it's a loop there's no need to pause on the final frame as it will be pausing on the identical first frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment