On Wed, 15 Mar 2006 09:46:56 -0800, Bill Moseley wrote:

Hi Bill

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

It's a bit hard not knowing how the data was generated...

> my $im = Image::Magic->new;

I would have tried:
 new(magick => 'png');

> $im->BlobToImage( $image_data );
>
> my $image = $im->[0];
>
> $image->resize('100x100>');
>
> return $image->ImageToBlob( magick => 'png' );

return $image || whatever;
> }

And what happens when you try this :-)?
-- 
Cheers
Ron Savage, [EMAIL PROTECTED] on 16/03/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company



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

Reply via email to