Stroep

Just a collection of random works – Mark Knol

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 , , . | Tiny URL http://tinyurl.com/cblhd2

9 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

    regards

    sanu

  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:
    http://code.google.com/p/stroep/source/browse/trunk/nl/stroep/utils/CropUtil.as

  7. sandrar says:

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

Trackbacks

  1. [...] maybe I could use my ImageSaver Class to create a movie-sequence by saving frame by frame as PNG. addthis_pub = ‘markknol’; [...]

Leave a Reply