Skip Menu |

This queue is for tickets about the Image-ExifTool CPAN distribution.

Report information
The Basics
Id: 23688
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Image-ExifTool

People
Owner: EXIFTOOL [...] cpan.org
Requestors: jaybuffington [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.60
Fixed in: 6.66



I'm getting a warning whenever I call ImageInfo on this particular image: http://www.imagestation.com/picture/sraid200/pbabf2f4143e90f85ffdd15cf036c7b99/f082c4c3.jpg.orig.jpg The warning: ValueConv ScaleFactor35efl: Illegal division by zero at /usr/lib/perl5/site_perl/5.8.5/Image/ExifTool/Exif.pm line 1766. See more info below. Thanks, Jay jay@webdev:~$ cat t.pl #!/usr/bin/perl use strict; use warnings; use Image::ExifTool; my $file_name = shift or die "Usage: $0 <file_name>"; my $exif_tool = Image::ExifTool->new(); my $exif_info = $exif_tool->ImageInfo( $file_name ); jay@webdev:~$ wget http://www.imagestation.com/picture/sraid200/pbabf2f4143e90f85ffdd15cf036c7b99/f082c4c3.jpg.orig.jpg --15:42:44-- http://www.imagestation.com/picture/sraid200/pbabf2f4143e90f85ffdd15cf036c7b99/f082c4c3.jpg.orig.jpg => `f082c4c3.jpg.orig.jpg' Resolving www.imagestation.com... 216.35.12.103 Connecting to www.imagestation.com|216.35.12.103|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,378,864 (1.3M) [image/jpeg] 100%[=======================================================================================================>] 1,378,864 4.10M/s 15:42:44 (4.10 MB/s) - `f082c4c3.jpg.orig.jpg' saved [1378864/1378864] jay@webdev:~$ perl t.pl f082c4c3.jpg.orig.jpg ValueConv ScaleFactor35efl: Illegal division by zero at /usr/lib/perl5/site_perl/5.8.5/Image/ExifTool/Exif.pm line 1766. ValueConv ScaleFactor35efl: Illegal division by zero at /usr/lib/perl5/site_perl/5.8.5/Image/ExifTool/Exif.pm line 1766. jay@webdev:~$ perl -MImage::ExifTool -le 'print $Image::ExifTool::VERSION' 6.17 jay@webdev:~$
Subject: Re: Divide by zero when calculating ScaleFactor35efl
From: EXIFTOOL [...] cpan.org
Hi Jay, Thanks for the bug report. Interestingly, the error is due to a divide by infinity, not a divide by zero (which I was already protecting against). This is due to the 'inf' value for FocalPlaneXResolution and FocalPlaneYResolution in this image. (You should fix this.) I have added a check for 'inf' focal plane resolutions, and this update will appear in version 6.59 when it is released. Thanks again. - Phil
Subject: Re: [rt.cpan.org #23688] Re: Divide by zero when calculating ScaleFactor35efl
Date: Wed, 29 Nov 2006 08:09:04 -0800
To: bug-Image-ExifTool [...] rt.cpan.org
From: "Jay Buffington" <jaybuffington [...] gmail.com>
Hi Phil, Thanks for your hard work on this module. I appreciate it. Jay On 11/29/06, via RT <bug-Image-ExifTool@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=23688 > > > Hi Jay, > > Thanks for the bug report. > > Interestingly, the error is due to a divide by infinity, not a divide by zero (which I was already > protecting against). This is due to the 'inf' value for FocalPlaneXResolution and > FocalPlaneYResolution in this image. (You should fix this.) > > I have added a check for 'inf' focal plane resolutions, and this update will appear in version 6.59 > when it is released. > > Thanks again. > > - Phil > >