We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52011e5 commit 0fbcd01Copy full SHA for 0fbcd01
scripts/squash-images.sh
@@ -9,16 +9,16 @@ else
9
python3 scripts/thumbnail-images.py
10
fi
11
12
-# https://pmt.sourceforge.io/pngcrush/
13
-# On Mac: brew install pngcrush
+# http://optipng.sourceforge.net/
+# On Mac: brew install optipng
14
15
-# Options:
16
-# -ow Overwrite
17
-# -brute Use brute-force: try 176 different methods
+# Optimization levels:
+# -o7 -zm1-9 <=> -zc1-9 -zm1-9 -zs0-3 -f0-5 (1080 trials)
18
19
if [ ! -z $1 ]
20
then
21
pngcrush -ow -brute $1
+ optipng -o7 -zm1-9 $1
22
else
23
- find . -iname '*.png' -exec pngcrush -ow -brute {} \;
+ optipng -o7 -zm1-9 assets/*.png
24
0 commit comments