Skip to content

Instantly share code, notes, and snippets.

@tmilewski tmilewski/
Last active Aug 21, 2018

What would you like to do?

Giphy WEBP Converter

giphy [mp4 gif url]


  • Copy and run the following:
curl -o /usr/local/bin/giphy; chmod +x /usr/local/bin/giphy

How To Run

  • Grab the MP4 version of the GIF via the media link to the right of the page
  • giphy
  • The resulting GIF will be saved in ~/Downloads
#!/usr/bin/env bash
NOW=$(date +"%Y-%m-%d_%H-%M-%S")
ffmpeg -i "$1" -filter_complex "[0:v] fps=12,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" ~/Downloads/$NOW.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.