Skip to content

Instantly share code, notes, and snippets.

@geta6
Forked from shokai/.gitignore
Last active December 24, 2015 15:39
Show Gist options
  • Save geta6/6821476 to your computer and use it in GitHub Desktop.
Save geta6/6821476 to your computer and use it in GitHub Desktop.
#!/bin/sh
TRY=3
RESIZE=240
DELAY=8
BIN=`which imagesnap`
TMP=`mktemp -d`
DST=gifsnap.gif
for i in `seq 1 ${TRY}`; do
${BIN} -w 2.0 ${TMP}/gifsnap_${i}.gif
done
gifsicle -O3 --resize-fit-width ${RESIZE} --delay ${DELAY} --loop --colors 256 ${TMP}/* > ${DST}
rm -rf ${TMP}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment