MSWSP: fix build after rebase
[wireshark-wip.git] / image / compress-pngs
blob38723636724aaea38f51361674f3f4dfdebbe6c4
1 #!/bin/bash
3 FILE_LIST_CMD="find . -type f -name \"*.png\""
5 if [ -n "$1" ] ; then
6 FILE_LIST_CMD="echo $1"
7 fi
9 bash -c "$FILE_LIST_CMD" | while read PNG_FILE ; do
10 echo Compressing $PNG_FILE
11 hash optipng 2>/dev/null && optipng -o3 -quiet "$PNG_FILE"
12 hash advpng 2>/dev/null && advpng -z -4 "$PNG_FILE"
13 hash advdef 2>/dev/null && advdef -z -4 "$PNG_FILE"
14 hash pngcrush 2>/dev/null && pngcrush -q -ow -brute "$PNG_FILE"
15 done