aboutsummaryrefslogtreecommitdiffstats
path: root/image/compress-pngs
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-03-27 18:09:00 +0000
committerGerald Combs <gerald@wireshark.org>2013-03-27 18:09:00 +0000
commitd3b54956c152eb93ea9c434e78d2d97fdbbc6859 (patch)
treef03104427963e8f8469ded268beae338d9500e47 /image/compress-pngs
parentade9361071193f43516b19fb3947ca98f55cba9e (diff)
Add an interface list icon. Some of the new capture icons were 1 pixel
too small, so add corrected ones. Add SVG versions of the new toolbar icons. Use consistent naming for alternate icons. Remove some no-longer-used XPMs. Add a script to compress PNGs using various utilities and run it. Regenerate the pixbuf includes using the smaller PNGs. svn path=/trunk/; revision=48591
Diffstat (limited to 'image/compress-pngs')
-rwxr-xr-ximage/compress-pngs12
1 files changed, 12 insertions, 0 deletions
diff --git a/image/compress-pngs b/image/compress-pngs
new file mode 100755
index 0000000000..d6fcc1c327
--- /dev/null
+++ b/image/compress-pngs
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+hash optipng 2>/dev/null && HAVE_OPTIPNG="True"
+hash optipng 2>/dev/null && HAVE_OPTIPNG="True"
+
+find . -type f -name "*.png" | while read PNG_FILE ; do
+ echo Compressing $PNG_FILE
+ hash optipng 2>/dev/null && optipng -o3 -quiet "$PNG_FILE"
+ hash advpng 2>/dev/null && advpng -z -4 "$PNG_FILE"
+ hash advdef 2>/dev/null && advdef -z -4 "$PNG_FILE"
+ hash pngcrush 2>/dev/null && pngcrush -brute "$PNG_FILE"
+done