Command line tool to convert .gifv or any video file to an optimized .gif and upload to imgur. The primary motivation for this tool is for converting existing .gifv links to .gif format for use in GitHub pull requests.
If you plan on uploading converted images to imgur, you must generate a Client ID here.
go-gif-pr -i http://i.imgur.com/some_file.gifv
go-gif-pr -i /path/to/some_file.gifv
-i URL or path of the .gifv or video to convert
-w Width of the final converted image. Defaults to 300.
-c Imgur Client ID. Defaults to ENV var IMGUR_CLIENT_ID.
If no ID is provided, the result image will be left locally.
-k Option to keep intermediary files created during conversion.
-m Option to output into Markdown format for quick copy and paste.
brew install ffmpeg
brew install gifsicle
apt-get install ffmpeg
apt-get install gifsicle
Install Go
go build