10 responses to “AS3 ImageSaver Class updated”

  1. 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.

  2. Mark Knol says:

    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.

  3. venkat says:

    how to set the rectangular bounds

  4. anu says:

    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



  5. Maarten says:

    @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.

  6. Mark Knol says:

    @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:

  7. sandrar says:

    Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.

  8. Mark says:

    Thanks Sandrar

  9. Ciaran says:

    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,

Say something interesting

Please link to code from an external resource, like gist.github.com.