Skip to content

Instantly share code, notes, and snippets.

@jromeem
Created April 20, 2015 12:11
Show Gist options
  • Save jromeem/d080074f540608cc9284 to your computer and use it in GitHub Desktop.
Save jromeem/d080074f540608cc9284 to your computer and use it in GitHub Desktop.
#!/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
@jromeem
Copy link
Author

jromeem commented Apr 20, 2015

wow this is exactly what I was looking for! Thanks Jerome 👍

@jromeem
Copy link
Author

jromeem commented Apr 20, 2015

you're welcome 😄

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