Skip to content

Instantly share code, notes, and snippets.

@pgaspar
Last active February 4, 2016 15:47
Show Gist options
  • Save pgaspar/d4e743675dac1e79b31f to your computer and use it in GitHub Desktop.
Save pgaspar/d4e743675dac1e79b31f to your computer and use it in GitHub Desktop.
Screengif bash snippet

Screengif bash snippet

Add this to your .bash_profile or whatever you use.

# Running: gif demo.mov
# Outputs: demo.gif
gif() {
  name=$(echo "$1" | cut -f 1 -d '.')
  screengif -i "$1" -o "$name.gif" --fuzz 0
}

This allows you toget demo.gif by running:

$ gif demo.mov

Note: the --fuzz 0 option got me better quality for screencasts with gray background.

Screengif

Make sure you install screengif first.

Resources

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