Skip to content

Instantly share code, notes, and snippets.

@grapefrukt
Created January 17, 2013 11:57
Show Gist options
  • Save grapefrukt/4555456 to your computer and use it in GitHub Desktop.
Save grapefrukt/4555456 to your computer and use it in GitHub Desktop.
# converts avi file to gif animation, call using file name without extension
# the palette from color.png (created manually) will be used for all frames
# tweak framerate using the -delay argument (1x20) means 20 fps
target=resource-spawn
convert -quiet -delay 1x20 $target.avi +dither -map color.png tmp.gif
convert tmp.gif -layers OptimizeTransparency +map $target.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment