Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 291 Bytes

jpegToData.md

File metadata and controls

17 lines (12 loc) · 291 Bytes

Decoding JPEG image to the palette.

jpegToData(function callback)
  • callback call function after decoding.
Example:
var imageLib = require('./imageLib.js');

imageLib('./images/sample.jpg').jpegToData(function() {
	this.toPng('./images/simple.png');
});