Skip to content

Instantly share code, notes, and snippets.

@scribblemaniac
Created December 1, 2017 21:38
Show Gist options
  • Select an option

  • Save scribblemaniac/7ee7e507c31d1923598ff3179060198e to your computer and use it in GitHub Desktop.

Select an option

Save scribblemaniac/7ee7e507c31d1923598ff3179060198e to your computer and use it in GitHub Desktop.
Generates an animated GIF out of all PNGs in the current directory
#! /bin/bash
# Made by Nick, converted to bash by scribblemaniac
# Requires imagemagick in the path
DNAME="untitled_animation"
if [ $# -ge 1 ]; then
DNAME="$1"
fi
convert -dispose None -loop 0 -delay 16 *.png "$DNAME.gif"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment