On Thu, Mar 16, 2006 at 09:51:42AM +1100, Ron Savage wrote:
> On Wed, 15 Mar 2006 09:46:56 -0800, Bill Moseley wrote:
>
> It's a bit hard not knowing how the data was generated...
Yes, it is. Thankfully, Image Magick figures that out for me. ;)
>
> > my $im = Image::Magic->new;
>
> I would have tried:
> new(magick => 'png');
I did try that. Seems that requires the knowledge of the input
format. For jpeg I get:
Can't call method "Resize" on an undefined value at i.pl line 19, <F> chunk
1.
Again, I'm reading in some type of file (don't know what type) and
want to write it to the database as a 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 :-)?
Sorry, the code example I posted works.
But, I was replying about:
> How 'bout using BlobToImage().
It was suggested I use BlobToImage, so I was asking *how* to use
BlobToImage?
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users