diff options
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 + |