1.0.1 โ€ข Published 5 months ago

bulk-compress v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Bulk Compress ยท GitHub license npm version PRs Welcome

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.

1.0.1

5 months ago

1.0.0

5 months ago