Optimize (compress) images with power using imagemin
npm install imagemin-power-cli





Optimize (compress) images with power using imagemin :muscle:
``shell`
npm install --global imagemin-power-cli
Also you can install package locally:
`shell`
npm install --save imagemin-power-cli
`shellnode_modules\
Usage
$ imagemin-power [input] [options]
$ imagemin-power andbower_components\
\ are always ignored. You can also pass no input and use
stdin, instead.
Options:
-c, --config Configuration for plugins, need export \plugins\.cwd\
-d, --cwd Current working directory.
-m, --max-concurrency Sets the maximum number of instances of Imagemin that can run at once.
-p, --plugin Override the default plugins.
-o, --out-dir Output directory (respect \ argument).
-r, --recursive Run the command recursively.
-i, --ignore-errors Not stop on errors (it works with only with
-s --silent Reported only errors.
-v, --verbose Reported everything.
Examples
$ imagemin-power images/* --out-dir=build
$ imagemin-power foo.png > foo-optimized.png
$ cat foo.png | imagemin-power > foo-optimized.png
$ imagemin-power --plugins=pngquant foo.png > foo-optimized.png
``
- imagemin - API for this module
Feel free to push your code if you agree with publishing under the MIT license.