Skip to content

Commit 0fbcd01

Browse files
committed
Use optipng instead of pngcrush
1 parent 52011e5 commit 0fbcd01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: scripts/squash-images.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ else
99
python3 scripts/thumbnail-images.py
1010
fi
1111

12-
# https://pmt.sourceforge.io/pngcrush/
13-
# On Mac: brew install pngcrush
12+
# http://optipng.sourceforge.net/
13+
# On Mac: brew install optipng
1414

15-
# Options:
16-
# -ow Overwrite
17-
# -brute Use brute-force: try 176 different methods
15+
# Optimization levels:
16+
# -o7 -zm1-9 <=> -zc1-9 -zm1-9 -zs0-3 -f0-5 (1080 trials)
1817

1918
if [ ! -z $1 ]
2019
then
2120
pngcrush -ow -brute $1
21+
optipng -o7 -zm1-9 $1
2222
else
23-
find . -iname '*.png' -exec pngcrush -ow -brute {} \;
23+
optipng -o7 -zm1-9 assets/*.png
2424
fi

0 commit comments

Comments
 (0)