1.0.1 • Published 2 years ago
@leizm/png-js v1.0.1
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
});