Skip to content

Instantly share code, notes, and snippets.

@haranicle
Created December 12, 2016 02:43
Show Gist options
  • Save haranicle/924da640ade359d5c890d47f536d19fe to your computer and use it in GitHub Desktop.
Save haranicle/924da640ade359d5c890d47f536d19fe to your computer and use it in GitHub Desktop.
mkdir tmp && \
ffmpeg -i img.mov -an -r 5 tmp/%04d.png && \
convert tmp/*.png -resize 40% tmp/output_%04d.png && \
convert -delay 12 tmp/output_*.png img.gif && \
convert -layers Optimize img.gif img.gif && \
rm -rf tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment