aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-16 10:59:31 +0800
committerAaron LI <aly@aaronly.me>2017-10-16 10:59:31 +0800
commit020c5df2758d299f72d4badc98f8255edfa61b3a (patch)
tree558ed7e4286ce88bab7f76f121987c3994a747ab /cli
parent2a4f07ece389ab3454afeeeced8480a1c958f8f9 (diff)
downloadatoolbox-020c5df2758d299f72d4badc98f8255edfa61b3a.tar.bz2
Move some scripts
Diffstat (limited to 'cli')
-rw-r--r--cli/png2gif.sh11
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
+