-
-
Save zeke/4734063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$#" -lt 1 ]; then | |
echo 'Must supply an input file' | |
exit 1 | |
else | |
if [ "$#" -lt 2 ]; then | |
output=output | |
else | |
output=$2 | |
fi | |
# Convert it to a .gif | |
ffmpeg -i $1 -pix_fmt rgb24 -r 10 ${output}.gif | |
# Compress it | |
convert -layers Optimize ${output}.gif ${output}.gif | |
# Send it to CloudApp | |
cloudapp -d $h{output}.gif | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment