JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47286
  • Score
    100M100P100Q148188F
  • License MIT

Minify images seamlessly

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemin-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    imagemin-cli

    Minify images

    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 --plugin.pngquant.quality=0.2 > foo-optimized.png
        # Non-Windows platforms may support the short CLI syntax for array arguments
        $ 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