But If I change the following line
$img->read(file=>'p.bmp', type=>'bmp') or die $img->errstr();
TO
$img->read(file=>'p.jpg', type=>'jpg') or die $img->errstr();
I get the following error.
"format 'jpg' not supported at i.pl line 4."
The same is for other formats....except bmp.
Is this a limitation or I'm I doing something wrong?
The format is called 'jpeg'. To get a list a supported formats try
something like:
perl -e 'use Imager; print "$_\n" for keys %Imager::formats;'
If, on the other hand, jpeg is not listed there, you are probably
missing the jpeg libraries (/usr/lib/libjpeg*)
G.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>