Created
April 20, 2015 12:11
-
-
Save jromeem/d080074f540608cc9284 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
#!/bin/sh | |
# Jerome Martinez | |
# MON20-APR15: gif making or whatev idk | |
# nyoom | |
WOOSH1="woosh1.gif" | |
WOOSH2="woosh2.gif" | |
OUTFILE="woosh.gif" | |
# lmao im gurl | |
IMGURL1="https://scontent-dfw.xx.fbcdn.net/hphotos-xpt1/t31.0-8/11130492_560355404106174_9175180915468026786_o.jpg" | |
IMGURL2="https://scontent-dfw.xx.fbcdn.net/hphotos-xta1/t31.0-8/11053876_560355377439510_685158769893311306_o.jpg" | |
# i hope u dont already have a folder called wooshwoosh | |
mkdir ~/Desktop/wooshwoosh | |
cd ~/Desktop/wooshwoosh | |
wget $IMGURL1 -O $WOOSH1 && wget $IMGURL2 -O $WOOSH2 | |
# sips is basically the best | |
sips -s format gif -Z 500 $WOOSH1 --out $WOOSH1 | |
sips -s format gif -Z 500 $WOOSH2 --out $WOOSH2 | |
# gifsicle is basically the best too | |
gifsicle --delay=30 --colors=256 --loop woosh*.gif > $OUTFILE | |
open -a "Google Chrome" $OUTFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wow this is exactly what I was looking for! Thanks Jerome 👍