Subject: pkg/29054: imlib2 (p5-Image-Imlib2) fails to load images
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: pkgsrc-bugs
Date: 01/23/2005 19:18:00
>Number: 29054
>Category: pkg
>Synopsis: imlib2 (p5-Image-Imlib2) fails to load images
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 23 19:18:00 +0000 2005
>Originator: Kimmo Suominen
>Release: NetBSD 2.99.12 / pkgsrc HEAD 2005-01-22
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD hrothgar.gw.com 2.99.12 NetBSD 2.99.12 (GW-GENERIC) #99: Sat Jan 15 10:04:29 EST 2005 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
The load() method in Image::Imlib2 fails to load jpg files. (I have not
tested with other formats.) The files load successfully with earlier
versions of p5-Image-Imlib2 and imlib2.
Based on this thread [http://www.nowhere.dk/A::G/msg00878.html] it seems
the problem is not NetBSD- or pkgsrc-specific. Note that I am not seeing
the error message quoted in that thread -- I only get the error that the
sample perl script below has in it when the load() method fails.
I can provide a valid JPEG file for reproducing the problem:
% identify hannu.jpg
hannu.jpg JPEG 1600x1200 DirectClass 501kb 1.370u 0:02
ftp://ftp.gw.com/pub/people/kim/pri/hannu.jpg
However, as I mentioned, this happens with other JPEG files, too.
>How-To-Repeat:
use Image::Imlib2;
my $infile = 'hannu.jpg';
my $image = Image::Imlib2->load($infile)
or warn("Unable to open file $infile, $!");
>Fix:
My current workaround is to downgrade to imlib2-1.1.2nb3 and
p5-Image-Imlib2-1.03nb3.