Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 289 Bytes

pngToData.md

File metadata and controls

17 lines (12 loc) · 289 Bytes

Decoding PNG image to the palette.

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

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