From 70608033bab44e05f347c61c372a55b36f8062d9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 20 Nov 2022 15:25:11 +0100 Subject: pngquant optimized images --- tools/scale.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tools/scale.sh') diff --git a/tools/scale.sh b/tools/scale.sh index a54d41e..65e7fe9 100644 --- a/tools/scale.sh +++ b/tools/scale.sh @@ -5,14 +5,8 @@ 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 + convert $F -colorspace RGB -resize 25% -colorspace sRGB $O 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 + convert $F -colorspace RGB -resize 50% -colorspace sRGB $O done -- cgit v1.2.3