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

Can't decode png with BGR #18

Open Ming-Zhe opened 10 years ago

Ming-Zhe commented 10 years ago

Hi,

I'm using png-js to decode the png pics. When it comes to png with BGR (PNG files compressed by xcode), there would be error. Here is the error log.

path_to_project/node_modules/png-js/png-node.js:176
       throw err;
                ^
Error: incorrect header check
    at Zlib._binding.onerror (zlib.js:295:17)

I have no idea what to do.