Negligible Participation Metric
    Have ideas to improve npm?Join in the discussion! »

    imagemin-cli

    6.0.0 • Public • Published

    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

    Install

    npm i imagemin-cli

    DownloadsWeekly Downloads

    16,897

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    6.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar