AS3 ImageSaver Class updated (9)
September 10th, 2008, under Actionscript.
The ImageSaver Class is updated.
Download
» ImageSaver (latest)
Fixed:
- You can use a bitmapdata as input too. First you only could use a displayObject, but I believe it’s better to use an IBitmapDrawable (interface).
- Bug quality JPG
- Added optional rect
Tagged with Actionscript, as3, ImageSaver. | Tiny URL http://tinyurl.com/cblhd2






















First of all – thanks for making your work on AS3 ImageSaver Class public – it is appreciated.
I am having a problem getting the “testfile” to work on my server. Going directly to “jpg_encoder_save.php”or “jpg_encoder_download.php” results in an “An error occured.” response. Ironically, the same “jpg_encoder_download.php” file works OK when testing the “sketch” example from the sample directory.
I am confident that the swfs are compiling correctly with the class files. Could it be a PHP register globals issue? Thank you in advance for any advice.
Thanks for responding. I added a simple PHP file to just give an example of how to get it work. What code does the “jpg_encoder_save.php” or “jpg_encoder_download.php” contains?
I think this problem is caused by a setting of PHP, but to be honest, my PHP knowledge isn’t that good to give an answer what the problem really is.
Let me know if you/someone find out.
how to set the rectangular bounds
is it possible to save the png and jpeg on click of a button..intead of automatically… it would be great if anyone could reply
regards
sanu
@anu: u can put the save method on a button right?
@mark: this class is very usefull to me! thnx. I’m only struggling with the rect var. It seems that the rect is only used for showing pixels ,and not cropping the total image.
@Maarten; that’s correct. I think i’ll replace the rect-function to a crop-function. But you could also use my crop-util-class:
http://code.google.com/p/stroep/source/browse/trunk/nl/stroep/utils/CropUtil.as
Hi! I was surfing and found your blog post… nice! I love your blog.
Cheers! Sandra. R.
Thanks Sandrar