summaryrefslogtreecommitdiff
path: root/tools/scale.sh
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-11-20 15:25:11 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:37 +0100
commit70608033bab44e05f347c61c372a55b36f8062d9 (patch)
treee6cfecc9e5cf219acf38de9c96320d15371efea6 /tools/scale.sh
parent62c5a54f132ec16a673fabb3e62a29864b63f54e (diff)
downloadnevsky-70608033bab44e05f347c61c372a55b36f8062d9.tar.gz
pngquant optimized images
Diffstat (limited to 'tools/scale.sh')
-rw-r--r--tools/scale.sh10
1 files changed, 2 insertions, 8 deletions
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