AS3 PNG Encoder?

Moshe picture Moshe · Nov 18, 2010 · Viewed 8.7k times · Source

Is there a way to encode bitmap data into PNG for use with a FileReference.Save() method in AS3? I assume I need an encoder library.

Where can I get a library that encode BitpmapData into PNG?

Answer

Cameron picture Cameron · Nov 13, 2011

Shameless plug!

I just wrote a new PNG encoder called PNGEncoder2. It's extremely fast, offers three compression levels, supports huge images, and offers true asynchronous encoding (no pause at the end during the compression step).

More details, including usage examples and the full feature list, can be found in the README on GitHub. I also wrote a blog post about it, which includes a benchmark comparing it to other encoders (including Adobe's and blooddy's).