foliojs / png.js

A (animated) PNG decoder in JavaScript for the HTML5 canvas element and Node.js
http://devongovett.github.com/png.js
MIT License
489 stars 92 forks source link

Fix rendering 8 bit images with palette #54

Open blikblum opened 4 years ago

blikblum commented 4 years ago

It fixes rendering interlaced-pallete-8bit.png test image

The refactor reduces memory usage since no palette / transparency copy is done and simplifies the code

Also improves the example so it can show test files