diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-11-20 15:25:11 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:37 +0100 |
commit | 70608033bab44e05f347c61c372a55b36f8062d9 (patch) | |
tree | e6cfecc9e5cf219acf38de9c96320d15371efea6 /tools | |
parent | 62c5a54f132ec16a673fabb3e62a29864b63f54e (diff) | |
download | nevsky-70608033bab44e05f347c61c372a55b36f8062d9.tar.gz |
pngquant optimized images
Diffstat (limited to 'tools')
-rw-r--r-- | tools/scale.sh | 10 |
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 |