a CLI app to bulk compress the images inside a folder (supported image type: jpeg, png, webp, avif, gif, svg, tiff)
npm i -g bulk-compress
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
bulk-compress ./images/ ./images/compress/
Feel free to contribute to the project by submitting a pull request 🙋♂️.
Bulk Compress is MIT licensed.