-----Original Message----- From: Gretar Mar Hreggvidsson [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 6:41 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: Image split....
> > 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. ------ Hi Gretar Im working on windows and I downloaded libjpeg.dll from http://gnuwin32.sourceforge.net/packages/jpeg.htm and copied it to c:\windows\system and system32 but the following perl -e 'use Imager; print "$_\n" for keys %Imager::formats;' displays only bmp rgb w32 pnm tga ifs raw Thanks Prasanna -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>