- Mac OSX
- Camera (iSight)
- Homebrew
% brew install imagesnap imagemagick
% gifsnap
=> 1387328918.gif
% gifsnap out.gif
=> out.gif
*~ | |
*#* | |
.DS_Store |
#!/bin/sh | |
if test $1 ; then | |
OUT_FNAME=$1 | |
else | |
OUT_FNAME=`date +%s`.gif | |
fi | |
rm -f /tmp/gifsnap_*.gif | |
imagesnap -w 2.0 /tmp/gifsnap_01.gif | |
imagesnap -w 2.0 /tmp/gifsnap_02.gif | |
imagesnap -w 2.0 /tmp/gifsnap_03.gif | |
convert -delay 8 -loop 0 -geometry 240x /tmp/gifsnap_*.gif $OUT_FNAME | |
rm -f /tmp/gifsnap_*.gif | |
echo "=> $OUT_FNAME" |