]> Sergey Matveev's repositories - dotfiles.git/commitdiff
advpng with pngcrush
authorSergey Matveev <stargrave@stargrave.org>
Tue, 19 Oct 2021 09:09:18 +0000 (12:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 19 Oct 2021 09:09:18 +0000 (12:09 +0300)
img/bin/pngcrush.sh

index cc73d9b6aeb3b54f412925a4acb3cd59c2d3f7d9..06da4664e3a2b9f02d8a6821e53a5db7edb2cf1c 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh -ex
 
 t=$(TMPDIR=. mktemp)
-pngcrush -rem alla -rem allb "$1" $t
+pngcrush -rem alla -rem allb -z 2 "$1" $t
+advpng -z -4 $t
 mv $t "$1"