From 719d61982953caf61c0df7776347e13105a2e8b2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 22 Oct 2022 12:53:57 +0200 Subject: Add asset rendering scripts. --- tools/scale.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tools/scale.sh (limited to 'tools/scale.sh') diff --git a/tools/scale.sh b/tools/scale.sh new file mode 100644 index 0000000..a54d41e --- /dev/null +++ b/tools/scale.sh @@ -0,0 +1,18 @@ +mkdir -p output75 +mkdir -p output150 +for F in output300/*.png +do + echo $F + + O=${F/300/75} + gm convert $F -colorspace RGB -resize 25% -colorspace sRGB $O.tmp + rm -f $O + zopflipng -m $O.tmp $O + rm -f $O.tmp + + O=${F/300/150} + gm convert $F -colorspace RGB -resize 50% -colorspace sRGB $O.tmp + rm -f $O + zopflipng -m $O.tmp $O + rm -f $O.tmp +done -- cgit v1.2.3