Skip to content

Instantly share code, notes, and snippets.

@hitode909
Created October 25, 2009 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitode909/217993 to your computer and use it in GitHub Desktop.
Save hitode909/217993 to your computer and use it in GitHub Desktop.
#! /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