Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itgalaxy/imagemin-power-cli
Optimize (compress) images with power using imagemin :muscle:
https://github.com/itgalaxy/imagemin-power-cli
cli imagemin images minification minifier minify
Last synced: 2 months ago
JSON representation
Optimize (compress) images with power using imagemin :muscle:
- Host: GitHub
- URL: https://github.com/itgalaxy/imagemin-power-cli
- Owner: itgalaxy
- License: mit
- Created: 2016-08-15T17:38:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T09:41:06.000Z (about 2 years ago)
- Last Synced: 2024-08-11T03:16:38.643Z (5 months ago)
- Topics: cli, imagemin, images, minification, minifier, minify
- Language: JavaScript
- Homepage:
- Size: 1.18 MB
- Stars: 13
- Watchers: 6
- Forks: 0
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# imagemin-power-cli
[![NPM version](https://img.shields.io/npm/v/imagemin-power-cli.svg)](https://www.npmjs.org/package/imagemin-power-cli)
[![Travis Build Status](https://img.shields.io/travis/itgalaxy/imagemin-power-cli/master.svg?label=build)](https://travis-ci.org/itgalaxy/imagemin-power-cli)
[![Coverage Status](https://coveralls.io/repos/github/itgalaxy/imagemin-power-cli/badge.svg?branch=master)](https://coveralls.io/github/itgalaxy/imagemin-power-cli?branch=master)
[![dependencies Status](https://david-dm.org/itgalaxy/imagemin-power-cli/status.svg)](https://david-dm.org/itgalaxy/imagemin-power-cli)
[![devDependencies Status](https://david-dm.org/itgalaxy/imagemin-power-cli/dev-status.svg)](https://david-dm.org/itgalaxy/imagemin-power-cli?type=dev)
[![Greenkeeper badge](https://badges.greenkeeper.io/itgalaxy/imagemin-power-cli.svg)](https://greenkeeper.io/)Optimize (compress) images with power using [imagemin](https://github.com/imagemin/imagemin) :muscle:
## Install
```shell
npm install --global imagemin-power-cli
```Also you can install package locally:
```shell
npm install --save imagemin-power-cli
```## Usage
```shell
Usage
$ imagemin-power [input] [options]
$ imagemin-power >
$ cat | imagemin-power >
Input: Files(s), glob(s), or nothing to use stdin.
If an input argument is wrapped in quotation marks, it will be passed to
node-glob for cross-platform glob support. \`node_modules\` and
\`bower_components\` are always ignored. You can also pass no input and use
stdin, instead.Options:
-c, --config Configuration for plugins, need export \`plugins\`.
-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 \`cwd\` 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
```## Related
- [imagemin](https://github.com/imagemin/imagemin) - API for this module
## Contribution
Feel free to push your code if you agree with publishing under the MIT license.
## [Changelog](CHANGELOG.md)
## [License](LICENSE.md)