2.4.2 • Published 10 months ago

@chubkey/compress v2.4.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Compress

A lightweight CLI tool for compressing image files and converting them to the webp format. Built on top of the imagemin library with added functionality such as preserving folder structure.

Installation

npm install -g @chubkey/compress

Usage

Once installed, the CLI tool can be used by typing compress into a terminal.

Options

The library comes with a couple configuration flags used to direct the tool to your needs. Options should always come before the input/output directory.

Format: compress [options] <inputDir> <outputDir>

OptionDescription
--quality=<quality>Configures quality of lossy output (default=75)
--webpEnables webp conversion
--losslessUse loseless over lossy compression

Examples

compress images compressed_images

compress --quality=85 --webp images compressed_images

compress --lossless images compressed_images

License

This libary uses the MIT License.

2.4.2

10 months ago

2.4.1

10 months ago

2.4.0

10 months ago

2.3.2

10 months ago

2.3.1

10 months ago

2.3.0

10 months ago

2.2.0

10 months ago

2.1.0

10 months ago

2.0.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago