Skip to content

YounGoat/nodejs.jpeg-min

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpeg-min

jpeg-min is based on guetzli.

How to use?

var jpegmin = require('jpeg-min');

// The jpeg file will be compressed and replaced.
jpegmin('/path/to/my.jpg', function(err) {
	// ...
});

ATTENTION: By default, the jpeg file will be replaced with compressed one. So, if you wanna keep the original jpeg, make a copy before invoke jpeg-min.