Skip to content

a CLI app to bulk compress the images inside a folder (supported image type: jpeg, png, webp, avif, gif, svg, tiff)

License

Notifications You must be signed in to change notification settings

wilson-here/bulk-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a CLI app to bulk compress the images inside a folder (supported image type: jpeg, png, webp, avif, gif, svg, tiff)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published