Skip Menu |
 

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

Report information
The Basics
Id: 131616
Status: open
Priority: 0/
Queue: Image-Info

People
Owner: Nobody in particular
Requestors: matthias.zeichmann [...] geizhals.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: image_info fails with certain jpegs
Date: Thu, 30 Jan 2020 14:40:39 +0100
To: bug-Image-Info [...] rt.cpan.org
From: Matthias Zeichmann <matthias.zeichmann [...] geizhals.at>
Download (untitled) / with headers
text/plain 744b
calls to image_info() on the attached file fail with ---------------->8------------------------- $ perl -MImage::Info=image_info -E 'warn image_info("loeffler.jpg")->{error}; say "\nImage::Info version: ". Image::Info->VERSION; say "Perl version: $]"' 'x' outside of string in unpack at /opt/gh/perl-current-live/local-default/lib/perl5/Image/TIFF.pm line 853. Image::Info version: 1.42 Perl version: 5.030001 $ uname -a Linux mtths.ghwb 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux $ ---------------->8------------------------- the fault lies somewhere in the extra markers, when stripping those (e.g. with "jpegtran -copy comments loeffler.jpg > stripped.jpg") the file is processed correctly cheers matthias
Download loeffler.jpg
image/jpeg 93.7k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 1.1k
On 2020-01-30 08:47:55, matthias.zeichmann@geizhals.at wrote: Show quoted text
> calls to image_info() on the attached file fail with > > ---------------->8------------------------- > $ perl -MImage::Info=image_info -E 'warn > image_info("loeffler.jpg")->{error}; say "\nImage::Info version: ". > Image::Info->VERSION; say "Perl version: $]"' > 'x' outside of string in unpack at > /opt/gh/perl-current-live/local-default/lib/perl5/Image/TIFF.pm line 853. > > Image::Info version: 1.42 > Perl version: 5.030001 > $ uname -a > Linux mtths.ghwb 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 > (2017-09-19) x86_64 GNU/Linux > $ > ---------------->8------------------------- > > the fault lies somewhere in the extra markers, when stripping those > (e.g. with "jpegtran -copy comments loeffler.jpg > stripped.jpg") the > file is processed correctly >
First analysis: the image has a faulty APP1 EXIF segment. This is also what exiftool says: ... Warning : Malformed APP1 EXIF segment ... A possible fix could be https://github.com/eserte/image-info/commit/4933d26818d19055b0f9ec5f44d700788e12f877 which would turn the fatal error into a "Warn" field.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.