On Wed, Mar 15, 2006 at 08:59:38AM -0800, [EMAIL PROTECTED] wrote:
> > What I'm not clear on is how to, say, convert the image to PNG while
> > the image is in memory.
> 
> How 'bout using BlobToImage().
> 

How about an example? ;)

What am I missing in http://www.imagemagick.org/script/perl-magick.php that 
shows this?

Do you mean to say "use the magick attribute with ImageToBlob()"?

    sub write_thum {
        my $image_data = shift;  # unknown image type

        my $im = Image::Magic->new;
        $im->BlobToImage( $image_data );

        my $image = $im->[0];

        $image->resize('100x100>');

        return $image->ImageToBlob( magick => 'png' );
    }






-- 
Bill Moseley
[EMAIL PROTECTED]

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to