aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-03-24 02:00:41 -0700
committerkatherine <shmibs@shmibbles.me>2017-03-24 02:00:41 -0700
commit4ad6cd5bbb06faf7ae50f7d2541e27d0d94b1d81 (patch)
tree40d70f7391228e366ad46614dab60a0ae85a9ff5
parent6cabff51c86d045fc0c9125671919b292c87d92f (diff)
downloadmake-gif-4ad6cd5bbb06faf7ae50f7d2541e27d0d94b1d81.tar.gz
use gifsicle batch mode
-rwxr-xr-xmake-gif7
1 files changed, 1 insertions, 6 deletions
diff --git a/make-gif b/make-gif
index 2c33718..d553aff 100755
--- a/make-gif
+++ b/make-gif
@@ -197,11 +197,6 @@ rm_tmps
# gifsicle
if [[ -f "$2" && $gsic ]]; then
- local gsictmp="$2.out"
- while [[ -f "$gsictmp" ]]; do
- gsictmp="$gsictmp.out"
- done
echo "optimising..."
- gifsicle -O3 -i "$2" -o "$gsictmp"
- [[ $? -eq 0 ]] && rm -f "$2" && mv "$gsictmp" "$2"
+ gifsicle --batch -O3 -i "$2"
fi