hsa-image-compressor
v1.0.3
Published
An image compression tool
Downloads
213
Readme
HSA Image Compressor
A command-line tool for image compression. This utility reads images from a specified directory and saves the compressed versions to another specified directory. It uses the sharp
library to support JPEG and PNG formats.
Features
- Reads images from the input directory.
- Saves compressed images to the specified output directory.
- Supports JPEG and PNG formats.
- User-configurable image quality.
Installation
To install the project globally, use the following command:
bash
npm install -g hsa-image-compressor
Usage
hsa-image-compressor -i <input_directory> -o <output_directory> [-q ]
## Parameters