small-image

compress image

Usage no npm install needed!

<script type="module">
  import smallImage from 'https://cdn.skypack.dev/small-image';
</script>

README

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