• Stars
    star
    923
  • Rank 49,492 (Top 1.0 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Minify images seamlessly

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

Related

More Repositories

1

imagemin

Minify images seamlessly
JavaScript
5,562
star
2

imagemin-app

imagemin as an OS X, Linux and Windows app
JavaScript
826
star
3

imagemin-webp

WebP plugin for imagemin
JavaScript
496
star
4

imagemin-pngquant

Imagemin plugin for `pngquant`
JavaScript
316
star
5

imagemin-mozjpeg

Imagemin plugin for mozjpeg
JavaScript
251
star
6

imagemin-optipng

optipng plugin for imagemin
JavaScript
163
star
7

imagemin-svgo

SVGO plugin for imagemin
JavaScript
126
star
8

mozjpeg-bin

mozjpeg bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
120
star
9

imagemin-jpegtran

jpegtran plugin for imagemin
JavaScript
119
star
10

imagemin-gifsicle

Imagemin plugin for Gifsicle
JavaScript
116
star
11

pngquant-bin

pngquant bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
115
star
12

gifsicle-bin

gifsicle bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
113
star
13

optipng-bin

optipng bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
97
star
14

jpegtran-bin

jpegtran bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
93
star
15

cwebp-bin

cwebp bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
92
star
16

imagemin-guetzli

imagemin plugin for guetzli https://github.com/google/guetzli
JavaScript
81
star
17

imagemin-jpeg-recompress

jpeg-recompress imagemin plugin
JavaScript
63
star
18

imagemin-micro

Microservice for Imagemin
JavaScript
61
star
19

zopflipng-bin

zopflipng bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
51
star
20

pngcrush-bin

pngcrush bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
39
star
21

imagemin-jpegoptim

Imagemin plugin for jpegoptim
JavaScript
38
star
22

guetzli-bin

guetzli wrapper that makes it seamlessly available as a local dependency
JavaScript
30
star
23

imagemin-zopfli

zopfli plugin for imagemin
JavaScript
26
star
24

jpeg-recompress-bin

jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
25
star
25

jpegoptim-bin

jpegoptim bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
24
star
26

imagemin-pngcrush

pngcrush plugin for imagemin
JavaScript
23
star
27

imagemin-pngout

pngout plugin for imagemin
JavaScript
14
star
28

pngout-bin

pngout bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
14
star
29

imagemin-advpng

AdvPNG plugin for imagemin
JavaScript
9
star
30

advpng-bin

AdvPNG bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
8
star
31

logo

The imagemin logo
CSS
7
star
32

gif2webp-bin

gif2webp bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
7
star
33

imagemin-gif2webp

gif2webp plugin for imagemin
JavaScript
6
star
34

meta

General discussion repo for imagemin related projects
6
star
35

imagemin.io

The site for imagemin
CSS
4
star