Created
October 25, 2009 10:27
-
-
Save hitode909/217993 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 | |
# 画像のURLを渡すとTwitterで使える形式のアニメーションGIFにする | |
# 参考: http://9artz.jp/h/159/twiiter_gif_icon/ | |
i=0 | |
while [ $i -lt 3 ]; do | |
wget "http://hitode909.appspot.com/glitch/api?uri=${1}" | |
i=`expr $i + 1` | |
done | |
convert -coalesce -geometry 100x100 -delay 0 -loop 0 -deconstruct api* out.gif | |
mv out.gif out.png | |
rm api* | |
open -a Firefox.app out.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment