Skip to content

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

License

GILLMtz/image-compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published