Skip to content

jyu213/image-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image compress cli

An usefull cli tool for compress images. base on [imagemin](https://github.com/imagemin/imagemin).

Install

npm i -g image-compress-cli

Usage

Usage: image-compress [source image path]

Options:
  -V, --version         output the version number
  -c --config <config>  image config file
  -h, --help            output usage information

default source path is src.

Config

The configuration will read .image.json in the current directory if is exist, otherwise it will use default config.

default config

{
  "mozjpeg": {
    "progressive": true,
    "quality": 75
  },
  "optipng": {
    "enabled": false
  },
  "pngquant": {
    "quality": "75-90",
    "speed": 4
  },
  "gifsicle": {
    "interlaced": false
  }
}

About

compress image cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published