bulk-compress

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i bulk-compress

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.41 kB

Total Files

4

Last publish

Collaborators

  • wilson-here