1.0.0 • Published 11 months ago

@fand/img-opt v1.0.0

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

img-opt

Optimize images on CLI.

Install

npm i -g @fand/img-opt

Usage

$ img-opt --help
Usage: img-opt [options] <input> <output>

Arguments:
  input                   input image path
  output                  output image path

Options:
  -o, --output <path>     output image path
  -q, --quality <number>  quality (0-100 for JPEG/WebP, 0-9 for PNG)
  --width <number>        resize width
  --height <number>       resize height
  -h, --help              display help for command

Examples:
  $ img-opt input.jpg output.jpg --quality 75 --width 1000
  $ img-opt input.png output.png --width 640 --height 360 --quality 9

Author

AMAGI (GitHub: @fand)

LICENSE

MIT

1.0.0

11 months ago