Skip to content

leizongmin/png.js

 
 

Repository files navigation

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
});

About

A (animated) PNG decoder in JavaScript for the Web-interoperable Runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.0%
  • HTML 1.0%