Skip to content

Commit fa55da2

Browse files
hugovktakluyver
authored andcommitted
Update script to use lossless pngcrush instead of lossy pngquant
1 parent fe001e2 commit fa55da2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

scripts/squash-images.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
# pip install pillow
44
python3 scripts/thumbnail-images.py
55

6-
# https://pngquant.org/
7-
# On Mac: brew install pngquant
6+
# https://pmt.sourceforge.io/pngcrush/
7+
# On Mac: brew install pngcrush
88

99
# Options:
10-
# --ext .png Output to same filename, don't append anything else
11-
# --force Overwrite existing output files
12-
# --speed 1 Slow speed, best quality
13-
# --strip Remove optional metadata
10+
# -ow Overwrite
11+
# -brute Use brute-force: try 176 different methods
1412

15-
pngquant --ext .png --force --speed 1 --strip assets/*.png img/*.png
13+
find . -iname '*.png' -exec pngcrush -ow -brute {} \;

0 commit comments

Comments
 (0)