andye has asked for the wisdom of the Perl Monks concerning the following question:
For some time it's been quite happily resizing gifs for me, now I want it to do the same with jpegs. Something's going wrong in the conversion to or from a blob - I've narrowed it down to the following:
Any ideas gratefully appreciated.#the original blob is in $blobdata - if I print it out here # then I can see it's fine (exists, looks right). #in the following line I've tried jpeg,jpg,JPG my $image=Image::Magick->new(magick=>'JPEG'); $image->BlobToImage($blobdata); my $newblob = $image -> ImageToBlob() ; print $newblob; #at this point, $newblob appears to be empty
Cheers,
andy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image::Magick BlobToImage() for jpegs
by andye (Curate) on May 04, 2001 at 15:45 UTC | |
|
Re: Image::Magick BlobToImage() for jpegs
by Sinister (Friar) on May 04, 2001 at 15:10 UTC | |
by andye (Curate) on May 04, 2001 at 15:15 UTC | |
by Sinister (Friar) on May 04, 2001 at 15:40 UTC | |
by andye (Curate) on May 04, 2001 at 15:42 UTC |