Re: [Flashcoders] bitmap RLE example
Zeh Fernando wrote: I have a project that creates comic strips, and the owner would like me to make it so that users can download an image of the comics they create. I have looked around, and found that this is possible to do in Flash 8, but there are some performance considerations. I've seen it mentioned a few times that you can help the problem, which seems to be tied mostly the time it will take to upload an uncompressed bitmap to a server, by compressing the bitmap stream using RLE or LZW. I haven't found any examples that I can follow that show or explain how to do that. Does anyone have an example of how I can compress a bitmap stream then upload it to a server (any server scripts in php to send that data back as an image file, are a bonus ;-) ). There are many AS classes that do LZW compression for you, and RLE could easily be done with new code. Depending on what kind of data you'll compress - ie, black & white data - RLE is good enough. If not, LZW is the way to go, but you'll be spending *a lot* of time reading them compressing it. You would need the decoding done on the server side script too. The AS part is just half of the equation. LZW is standardized, though, so if you're going with LZW data, it might be easy to find LZW decoders in PHP. Another possible solution (depending on your case) would be to use AS3. It can do PNG generation natively and faster (so you'd have to upload the PNG data, then simply output it to a file when the PHP receives it). Anyhow, if you're looking for LZW in AS2, I would suggest this one: http://hosted.zeh.com.br/misc/classes/zeh/compression/LZW.as It's the one I've done for my own use, the difference from all others being that it has functionality to split the compression between frames instead of trying to do all at once (and freezing playback). Read the .AS file for usage examples. Zeh Sweet! Thanks for the link. Kevin N. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] bitmap RLE example
I have a project that creates comic strips, and the owner would like me to make it so that users can download an image of the comics they create. I have looked around, and found that this is possible to do in Flash 8, but there are some performance considerations. I've seen it mentioned a few times that you can help the problem, which seems to be tied mostly the time it will take to upload an uncompressed bitmap to a server, by compressing the bitmap stream using RLE or LZW. I haven't found any examples that I can follow that show or explain how to do that. Does anyone have an example of how I can compress a bitmap stream then upload it to a server (any server scripts in php to send that data back as an image file, are a bonus ;-) ). There are many AS classes that do LZW compression for you, and RLE could easily be done with new code. Depending on what kind of data you'll compress - ie, black & white data - RLE is good enough. If not, LZW is the way to go, but you'll be spending *a lot* of time reading them compressing it. You would need the decoding done on the server side script too. The AS part is just half of the equation. LZW is standardized, though, so if you're going with LZW data, it might be easy to find LZW decoders in PHP. Another possible solution (depending on your case) would be to use AS3. It can do PNG generation natively and faster (so you'd have to upload the PNG data, then simply output it to a file when the PHP receives it). Anyhow, if you're looking for LZW in AS2, I would suggest this one: http://hosted.zeh.com.br/misc/classes/zeh/compression/LZW.as It's the one I've done for my own use, the difference from all others being that it has functionality to split the compression between frames instead of trying to do all at once (and freezing playback). Read the .AS file for usage examples. Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] bitmap RLE example
Hey Everyone, I have a project that creates comic strips, and the owner would like me to make it so that users can download an image of the comics they create. I have looked around, and found that this is possible to do in Flash 8, but there are some performance considerations. I've seen it mentioned a few times that you can help the problem, which seems to be tied mostly the time it will take to upload an uncompressed bitmap to a server, by compressing the bitmap stream using RLE or LZW. I haven't found any examples that I can follow that show or explain how to do that. Does anyone have an example of how I can compress a bitmap stream then upload it to a server (any server scripts in php to send that data back as an image file, are a bonus ;-) ). Thanks, Kevin N. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com