@woolson/oimg

optimize image command line tool


Keywords
command-line, optimize, image
License
ISC
Install
npm install @woolson/oimg@0.1.0

Documentation

oimg

Optimize image[png, jpg, jpeg, svg, gif] command line tool.

TODO List

- command optiomize; - command alias; - config compress quality.

Install

install with npm

sudo npm install -g oimg

Usage

options

  • list all images in current folder, run:

$ oimg [-l|--list]
# ignore some image file with command --ignore
$ oimg -l --ignore file file file
  • compress images, run:

$ oimg [-c|--compress]
# ignore some image file with command --ignore
$ oimg -c --ignore file file file
  • use compress images replace origin images, run:

$ oimg [-r|--replace]
# ignore some image file with command --ignore
# ignore file name is origin file name
$ oimg -r --ignore file file file

Dependencies