imagemin-cli
Minify images seamlessly
Last updated 13 days ago by 1000ch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install imagemin-cli 
SYNC missed versions from official npm registry.

imagemin-cli Build Status

Minify images


Gumlet is helping make open source sustainable by sponsoring Sindre Sorhus.
Optimised Image Delivery made simple

Issues with the output should be reported on the imagemin issue tracker.

Install

$ npm install --global imagemin-cli

Usage

$ imagemin --help

  Usage
    $ imagemin <path|glob> ... --out-dir=build [--plugin=<name> ...]
    $ imagemin <file> > <output>
    $ cat <file> | imagemin > <output>

  Options
    --plugin, -p   Override the default plugins
    --out-dir, -o  Output directory

  Examples
    $ imagemin images/* --out-dir=build
    $ imagemin foo.png > foo-optimized.png
    $ cat foo.png | imagemin > foo-optimized.png
    $ imagemin foo.png --plugin=pngquant > foo-optimized.png
    $ imagemin foo.png --plugin.pngquant.quality={0.1,0.2} > foo-optimized.png
    $ imagemin foo.png --plugin.webp.quality=95 --plugin.webp.preset=icon > foo-icon.webp

Related

Current Tags

  • 6.0.0                                ...           latest (13 days ago)

9 Versions

  • 6.0.0                                ...           13 days ago
  • 5.1.0                                ...           6 months ago
  • 5.0.0                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2017 © taobao.org |