bulk-compress
v1.0.1
Published
a CLI app to bulk compress the images inside a folder (supported image type: jpeg, png, webp, avif, gif, svg, tiff)
Downloads
8
Maintainers
Readme
Bulk Compress ·
Overview
a CLI app to bulk compress the images inside a folder (supported image type: jpeg, png, webp, avif, gif, svg, tiff)
Installation
npm i -g bulk-compress
Usage
bulk-compress <INPUT_DIRECTORY> [<OUTPUT_DIRECTORY>]
- <INPUT_DIRECTORY>: where your images need to be compressed located
- <OUTPUT_DIRECTORY> (optional): the target folder for your compressed images
- this folder is automatically created if it doesn't exist, otherwise it is reused
- if no <OUTPUT_DIRECTORY> provided, the compressed images will be created in the <INPUT_DIRECTORY>
- compressed image file name will be: <YOUR_IMG_NAME>-min
Example
bulk-compress ./images/ ./images/compress/
Contributing
Feel free to contribute to the project by submitting a pull request 🙋♂️.
License
Bulk Compress is MIT licensed.