Skip to content

Instantly share code, notes, and snippets.

@drbh
Created March 26, 2018 18:27
Show Gist options
  • Select an option

  • Save drbh/32ffe9e657f2d5cca2b54d2f644c3dad to your computer and use it in GitHub Desktop.

Select an option

Save drbh/32ffe9e657f2d5cca2b54d2f644c3dad to your computer and use it in GitHub Desktop.
make screenshots into gifs easily with this function
screen2gif() {
ffmpeg -i $1 -s 1200x800 -pix_fmt rgb24 -r 20 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment