Another png encoder which support 8-bit indexed color

iiley July 19th, 2007

Days ago, i searched the interenet to try to find a ActionScript png encoder that support 8-bit indexed color, finally i can’t.

Because of true color encoding generate large size file, some times you maybe need a low quality picture but small size, then you need 8-bit color.

From searching and reading a lot of documents/articles, finally i wrote one, the arithmetic is not complex, but optimize the speed took much of my time, now it is 16 times fater than my original implementation, also it need about 1000ms to encode a 800*600 image to 8-bit indexed color, with ture color, it only need about 300 ms on my machine.

Features: True color 32-bit with alpha encoder, 24-bit opaque encoder, two trategies of 8-bit any color number indexed encoder(opaque/alpha).

I’ll release this project open source later, currently you can play with this demo test : http://aspngencoder.googlecode.com/files/AsPngEncoderTest2.air it need newest version of AIR runtime.

In fact it is alreay at svn now, some code will be improved a little later, but if you need it you can check http://svn.aswing.org/aswing/trunk/AsPngEncoder/
and
http://svn.aswing.org/aswing/trunk/AsPngEncoderTest/

Feedback are welcome.

as png encoder

as png encoder 2

5 Responses to “Another png encoder which support 8-bit indexed color”

  1. [...] Another PNG Encoder from author of AsWing framework. It make much smaller files due encoding to 8 bit PNG. Speed of PNG encoding also reduces. This is good to have alternative encoders, btw Who will be the first to create video encoder? [...]

  2. BrightLoudNoiseon 13 Nov 2007 at 4:34 pm

    This is very handy, unfortunately it doesn’t work with the latest AIR clients. Please update if you have the time. Thanks!

  3. iileyon 13 Nov 2007 at 6:05 pm

    I just uploaded a version for air beta2 now, here: http://code.google.com/p/aspngencoder/downloads/list

  4. BrightLoudNoiseon 14 Nov 2007 at 5:33 am

    Thanks,I try it out tonight.

  5. royon 23 Nov 2007 at 12:36 pm

    Good stuff. Besides Fireworks (which I don’t have) this is the only GUI tool I found that gives acces to all the alpha settings with 8bit pngs. Thank you!

Trackback URI | Comments RSS

Leave a Reply

Bad Behavior has blocked 1194 access attempts in the last 7 days.