From 020c5df2758d299f72d4badc98f8255edfa61b3a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 16 Oct 2017 10:59:31 +0800 Subject: Move some scripts --- cli/png2gif.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cli/png2gif.sh (limited to 'cli') 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 + -- cgit v1.2.2