@leizm/png-js
v1.0.1
Published
A PNG decoder in JavaScript for the Web-interoperable Runtime
Downloads
3
Readme
png.js
A PNG decoder in JS for the Web-interoperable Runtime.
Usage
Install the module using npm:
npm i png-js
Require the module and decode a PNG:
const PNG = require('png-js');
PNG.decode('some.png', function(pixels) {
// pixels is a 1d array (in rgba order) of decoded pixel data
});