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

Encode #10

Closed hitsthings closed 9 years ago

hitsthings commented 11 years ago

Thanks a ton for png.js! I'm loving it for handling ARDrone video.

It would be awesome if it were bidirectional as well - PNG.encode(rgbaData, width, height); and png.save('filename.png'); I want to send a stream of PNGs up to the browser after piping them through some processing.

I can try to implement this, but I'm a bit intimidated by http://www.w3.org/TR/PNG/ . Any help you (or anyone reading this) can give would be much appreciated.

MichalPaszkiewicz commented 9 years ago

Bump. This is a limiting factor on the node module.

devongovett commented 9 years ago

You should use png-stream. It's better for both encoding and decoding.

MichalPaszkiewicz commented 9 years ago

Cool! Thanks