RE: Image split....

2006-08-29 Thread Nagasamudram, Prasanna Kumar
-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

Re: Image split....

2006-08-28 Thread Gretar Mar Hreggvidsson
Hi I would probably use the module Imager (see CPAN), and it's crop() function. The function doesn't modify the source, it returns a new, cropped image based on the coordinates you submit to it. Best regards, Grétar Mar Nagasamudram, Prasanna Kumar wrote: Hi All Can anybody suggest

RE: Image split....

2006-08-28 Thread Nagasamudram, Prasanna Kumar
-Original Message- From: Gretar Mar Hreggvidsson [mailto:[EMAIL PROTECTED] Sent: Monday, August 28, 2006 5:29 PM To: Nagasamudram, Prasanna Kumar Cc: beginners@perl.org Subject: Re: Image split Hi I would probably use the module Imager (see CPAN), and it's crop() function

Re: Image split....

2006-08-28 Thread Gretar Mar Hreggvidsson
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 formatsexcept bmp.