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.
- Announcement , Showcase
- Comments(5)
[...] 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? [...]
This is very handy, unfortunately it doesn’t work with the latest AIR clients. Please update if you have the time. Thanks!
I just uploaded a version for air beta2 now, here: http://code.google.com/p/aspngencoder/downloads/list
Thanks,I try it out tonight.
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!