Skip Menu |

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

Report information
The Basics
Id: 20183
Status: resolved
Worked: 22 min
Priority: 0/
Queue: Image-Info

People
Owner: TELS [...] cpan.org
Requestors: m.herttrich [...] team.mobile.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.16
  • 1.21
Fixed in: (no value)

Attachments


Subject: Crash with "SOI missing at /usr/local/share/perl/5.8.4/Image/Info/JPEG.pm line 90."
In some seldom cases JPEG Images with additional Camera- Info's cause the following problem: ######################## use Image::Info qw(image_info); $file = $ARGV[0]; my $info = image_info($file); if ( my $error = $info->{error} ) { die "Can’t parse image info: $error\n"; } ######################## **********executing the perl************* micha@midnight:~$ ./iinfo.pl Desktop/Bilder/filetype_SLK_1a.JPG VERSION = 1.21 Can’t parse image info: SOI missing at /usr/local/share/perl/5.8.4/Image/Info/JPEG.pm line 90. ***************************************** For me and other Imageprocessing software the JPEG- file looks ok. It starts with FFD8 .... hexdump Desktop/Bilder/filetype_SLK_1a.JPG | head -1 0000000 d8ff e0ff 1000 464a 4649 0100 0101 6000 Can you have a look. what's going wrong. I did attach a sample image. I have here Ubuntu Linux 5.04. In Production we have Debian Sarge.
Subject: filetype_SLK_1a.JPG
Download filetype_SLK_1a.JPG
image/jpeg 59.7k
filetype_SLK_1a.JPG
On Thu Jun 29 04:59:41 2006, guest wrote: Show quoted text
> In some seldom cases JPEG Images with additional Camera- Info's cause > the following problem:
[snip] Show quoted text
> For me and other Imageprocessing software the JPEG- file looks ok. > It starts with FFD8 .... > > hexdump Desktop/Bilder/filetype_SLK_1a.JPG | head -1 > 0000000 d8ff e0ff 1000 464a 4649 0100 0101 6000 > > Can you have a look. what's going wrong. > > I did attach a sample image. > I have here Ubuntu Linux 5.04. In Production we have Debian Sarge. >
I had a look, and the expected marker seems to be missing in the middle of file. Wether this is a problem with the file, or with the code, I cannot tell. My knowledge of JPEG internals is very limited - sorry! At least now I patched the error message so that it will tell you at which offset that happens, for your file it is # perl t.pl ../test-images/crash_20183.jpeg Can’t parse image info: SOI missing in JPEG file at offset 7465 at lib/Image/Info/JPEG.pm line 91. best wishes, Tels
On Thu Jun 29 04:59:41 2006, guest wrote: Btw, in any case, please do not use Image::Info to parse EXIF data from image files - it is horrible buggy, broken and incomplete. Image::ExifTool (http://search.cpan.org/~exiftool/Image-ExifTool/) is a much better choice. Tels
Since there was no further reply, I assume the latest releases fixed the problem for you :) If you still have the same problem, please re-open this bug report by replying to this email. Thank you for your report!