image2min_extend

1.0.0 • Public • Published

image2min

Minify images(Base on imagemin-cli)

Install

npm install --global image2min

Usage

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

	Options
	  --plugin, -p   Override the default plugins
	  --out-dir, -o  Output directory
		--delete2x, -d Delete @2x image

	Examples
	  $ image2min images/*
	  $ image2min images/* --delete2x
	  $ image2min images/* --out-dir=build
	  $ image2min foo.png > foo-optimized.png
	  $ cat foo.png | image2min > foo-optimized.png
	  $ image2min foo.png --plugin=pngquant > foo-optimized.png
	  $ image2min 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
	  $ image2min foo.png --plugin.pngquant.quality={0.1,0.2} > foo-optimized.png
	  $ image2min foo.png --plugin.webp.quality=95 --plugin.webp.preset=icon > foo-icon.webp

Related

Package Sidebar

Install

npm i image2min_extend

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.61 kB

Total Files

4

Last publish

Collaborators

  • zlc0476