]> Sergey Matveev's repositories - dotfiles.git/blobdiff - img/bin/my-pngcrush
Less .sh and more explicit my-
[dotfiles.git] / img / bin / my-pngcrush
diff --git a/img/bin/my-pngcrush b/img/bin/my-pngcrush
new file mode 100755 (executable)
index 0000000..06da466
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -ex
+
+t=$(TMPDIR=. mktemp)
+pngcrush -rem alla -rem allb -z 2 "$1" $t
+advpng -z -4 $t
+mv $t "$1"