From 711ad36b029c2a44f86fd43da3aa8da3c5517b3c Mon Sep 17 00:00:00 2001 From: mmattmcw Date: Tue, 10 Aug 2021 19:36:54 -0400 Subject: [PATCH] Optimize svg file after creating it using stipple_gen. Todo: render generated png files into a preview video --- stipple.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stipple.sh b/stipple.sh index ab63943..9a0cd9c 100644 --- a/stipple.sh +++ b/stipple.sh @@ -36,4 +36,8 @@ for png in "${INPUT}/"*.png ; do --maxParticles $MAXPARTICLES rm "${tmp}" cd ~/src/animation/ -done \ No newline at end of file + opt=`mktemp`.svg + svgsort "${OUTPUT}/${name}.svg" "${opt}" + mv "${opt}" "${OUTPUT}/${name}.svg" +done +