# imagemin-min

[![i:npm]][l:npm]
[![i:ci]][l:ci]
[![i:size]][l:size]
[![i:npm-dev]][l:npm]

Like [imagemin][l:imagemin] but batteries-included

[i:npm]: https://img.shields.io/npm/v/imagemin-min
[i:npm-dev]: https://img.shields.io/npm/v/imagemin-min/dev
[l:npm]: https://npm.im/imagemin-min
[i:ci]: https://img.shields.io/github/actions/workflow/status/dr-js/imagemin-min/.github/workflows/ci-test-tag.yml
[l:ci]: https://github.com/dr-js/imagemin-min/actions?query=workflow:ci-test-tag
[i:size]: https://packagephobia.now.sh/badge?p=imagemin-min
[l:size]: https://packagephobia.now.sh/result?p=imagemin-min

currently support:
- Debian 11 (x64/arm64)
- Windows 10 (x64)
- MacOS latest (x64)

currently bundled image optimizer:
- jpg: [MozJPEG][l:mozjpeg] (pre-built binary)
- gif: [Gifsicle][l:gifsicle] (pre-built binary)
- png: [Pngquant][l:pngquant] (pre-built binary)
- webp: [cwebp][l:cwebp] (pre-built binary)
- svg: [SVGO][l:svgo] (dist browser bundle)

CLI commands:
- `imagemin-min-in-place file.png file.svg file.webp ...`: process each image file in-place (`imagemin-min file.png file.svg file.webp ...` also work)
- `imagemin-min-test-boot`: test binary working on current platform
- `imagemin-min-trim-battery`: drop binary for other platforms to save space (non-revert-able)

[l:imagemin]: https://github.com/imagemin
[l:mozjpeg]: https://github.com/mozilla/mozjpeg
[l:gifsicle]: https://github.com/kohler/gifsicle
[l:pngquant]: https://github.com/kornelski/pngquant
[l:cwebp]: https://developers.google.com/speed/webp
[l:svgo]: https://github.com/svg/svgo

more in source `README.md`