Image Awesome
- ImageOptim
- GPLv2
- macOS 图像优化 GUI 工具
- Zopfli, PNGOUT, OxiPNG, AdvPNG, PNGCrush, JPEGOptim, Jpegtran, Guetzli, Gifsicle, SVGO, svgcleaner, MozJPEG
- 无损 PNG: 40%~50%
- 有损 PNG 75%: ~75%
- https://imageoptim.com/
- ImageOptim/libimagequant
- JamieMason/ImageOptim-CLI
- 不支持 Apple Silicon JamieMason/ImageOptim-CLI#208
- 可以安装 ImageOptim 然后
npm install -g imageoptim-cli
- 可以安装 ImageOptim 然后
- 不支持 Apple Silicon JamieMason/ImageOptim-CLI#208
- https://foldleft.io/image-tools
# npm install -g imageoptim-cli
brew install imageoptim-cli
imageoptim ./src/assets/*.jpg
- AI Based
- Optimization/Apple silicon/GPU
JPG
SVG
- svgo
- MIT, JS
- 支持有损
- RazrFalcon/svgcleaner
- GPL-2.0, Rust
- scour
- Apache-2.0, Python
PNG
- chrissimpkins/Crunch
- MIT,Python
- pngquant, GPL
- shssoichiro/oxipng
- MIT, Rust
- ~30%+
- kornelski/pngquant
- GPLv3
- 允许损失质量
- google/zopfli
- Yuriy-Svetlov/compress-images
- MIT, C, JS
- imagemin
- https://tinypng.com/
- ~75%
brew install oxipng # install by macOS brew
# install by download binary
curl -LO https://github.com/shssoichiro/oxipng/releases/download/v9.0.0/oxipng-9.0.0-x86_64-apple-darwin.tar.gz
tar zxvf oxipng-9.0.0-x86_64-apple-darwin.tar.gz
oxipng -o max -i 0 --strip safe *.png