imagemin-cli

Minify images seamlessly from the command line

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Minify images seamlessly

Commands

imagemin

Examples

Minify a single image file$ imagemin input.png --out-dir=output
Minify all images in a directory$ imagemin images/*.{jpg,png} --out-dir=dist
Minify with specific plugin options$ imagemin input.png --plugin=pngquant --out-dir=output