Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 416 Bytes

toJpeg.md

File metadata and controls

18 lines (13 loc) · 416 Bytes

Save palette as a new JPEG image.

toJpeg(string file[, function callback[, int quality]])
  • file new image file.
  • callback call function after creating a palette.
  • quality quality a new image, between 0 and 100 (inclusive).
Example:
var imageLib = require('./imageLib.js');

imageLib('./images/sample.bmp').bmpToData(function() {
	this.toJpeg('./images/simple.jpg');
});