diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-16 10:59:31 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-16 10:59:31 +0800 |
commit | 020c5df2758d299f72d4badc98f8255edfa61b3a (patch) | |
tree | 558ed7e4286ce88bab7f76f121987c3994a747ab /cli | |
parent | 2a4f07ece389ab3454afeeeced8480a1c958f8f9 (diff) | |
download | atoolbox-020c5df2758d299f72d4badc98f8255edfa61b3a.tar.bz2 |
Move some scripts
Diffstat (limited to 'cli')
-rw-r--r-- | cli/png2gif.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/png2gif.sh b/cli/png2gif.sh new file mode 100644 index 0000000..1357be3 --- /dev/null +++ b/cli/png2gif.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +#convert ???.png -background white -alpha remove -resize 50% -layers optimize -delay 5 -loop 0 simu.gif + +[ ! -d gifs ] && mkdir gifs + +for f in ???.png; do + convert $f -trim -resize 50% gifs/${f%.png}.gif +done +gifsicle --delay=5 --loop --colors=256 --optimize=3 gifs/???.gif > simu.gif + |