Skip to content

Instantly share code, notes, and snippets.

@gnclmorais
Created June 13, 2014 17:17
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 gnclmorais/4f16e00dbc0fbc8332aa to your computer and use it in GitHub Desktop.
Save gnclmorais/4f16e00dbc0fbc8332aa to your computer and use it in GitHub Desktop.
Concatenates a bunch of sequencial pictures into a transitional .gif file
#!/bin/sh
#
# Grabs all .png files in a folder and concatenates them into a .gif file
#
# Options:
# -delay Delay between images in centisecond
convert -delay 75 *.png result.gif
@Couto
Copy link

Couto commented Jun 23, 2014

convert -delay 75 -alpha remove -background "#FFFFFF" *.png result.gif

Remove transparency and add a white background instead.
This also works with PNG to JPG conversions.

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