3.0.0 • Published 10 years ago

image-optim v3.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

Cross platform nodejs wrapper for optipng and jpegtran

####Supported Platforms

  • Windows
  • Mac
  • Linux

####Installation

npm install image-optim

####Usage

import optimizer from 'image-optim';

optimizer.optimize('path/to/image.png')
	.then(()=> {
		console.log('Successfully optimized image.')
	})
	.catch((err)=> {
		console.log('Failed to optimize image', err);
	})

jpeg/jpg files are optimized with jpegtran and png files are optimized with optipng.

####License MIT

3.0.0

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.1.0

12 years ago