Skip to content

Latest commit

 

History

History
85 lines (49 loc) · 2.21 KB

README.md

File metadata and controls

85 lines (49 loc) · 2.21 KB

dd

Es

Node-js MIT License s

Image Compressor is a command line tool developed on the imagemin project. Allows you to compress an image or a set of images. Supports images in the formats: .jpg, .png, .svg, .gif y .webp.

Compression specifications are set using an external file.

Features

  • Compress GIF images
  • Compress JPEG images
  • Compress PNG images
  • Compress SVG images
  • Compress WEBP images

Installation

  1. Clone the repo
    git clone https://github.com/GILLMtz/image-compressor.git
  2. Install NPM packages
    npm install

Usage/Examples

Run using configuration in external file

Run

npm start -- -configFile=config.ic

Content in config.ic

-inputFolder="my-spotify/media" 
-outputFolder="compressed"
-generateWebpFiles="false" jjbl jkhhj
-log="false"

Run with config file

Documentation

Param Description
-inputFolder Path where the image or images to be compressed are located
-outputFolder Directory where the files produced by compression are saved
-generateWebpFiles Indicates obtaining a file in .webp format as a result of the compression process for the .png and .jpg formats
-log Indicates whether the logs should be displayed during the compression process.

Technologies

Node.js

License

This project is licensed under the MIT License.