Simple CLI written to optimize images with following extensions: jpg, gif, svg, png. Under the hood, it uses a imagemin packages.
git clone https://github.com/playerony/image-optimizer-cli.git
cd image-optimizer-cli
npm install
After installation just invoke npm install -g
to register a new CLI. You'll get global access to image-optimizer
command.
image-optimizer -s=images -d=optimised
- Options: -s, --source -> source directory with images to optimize [string] [required] -d, --destination -> the folder where you want to save the optimized images [string] [required]
MIT