AS3 ImageSaver Class updated
The ImageSaver Class is updated. (See this blogpost to understand where I’m talking about)
» Latest version of ImageSaver on GoogleCode
– 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
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
@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:
Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.
Hi Mark, great blog, great scripts and really jaw-dropping AS art!
I’m not great with AS3. Can you let me know how to make a function call after the image data has been sent to PHP?
I’m just calling it on a timer at the moment but I think that might cause problems with large images or slow connections.
Thanks a lot,