/small-image

Primary LanguageJavaScript

small-image

make image smaller

Installation

npm install small-image -g   # globally

Usage

use the following cmd to the directory you want to compress

small-image -o ./image

the first option(optional)

-o: the compressed picture will cover the origin picture
-b: the compressed picture will save in outter directory named 'build'

the second option(optional)

decide what directory you want to compress, default directory is the current directory