Mail Index


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ApacheGallery] Image::Imlib2->load() check for A::G 0.9.1



Greetings,

In trying to diagnose a problem relating to some of my pictures not
being displayed, I noticed that on line 1362 of Gallery.pm, the return
value of Image::Imlib2->load() is not checked -- the result is that if
that call fails, create_scaled_image is still called anyway.  I'd
suggest keeping the warn() there but immediately returning if the load
fails.

As an aside, any ideas why
http://gallery.spoofed.org/Jeff/EnduringFreedom/rescue-crew.JPG won't
scale?  I keep getting this in my logs:

Unable to open file
/share/www/files/pics/Jeff/EnduringFreedom/rescue-crew.JPG,  at
/usr/local/share/perl/5.8.4/Apache/Gallery.pm line 1362.
[Thu Feb 3 12:42:34 2005] [error] Can't call method
"create_scaled_image" on an undefined value at
/usr/local/share/perl/5.8.4/Apache/Gallery.pm line 1365.\n

rescue-crew.JPG seems to be a perfectly valid JPEG, it just doesn't
scale at all.  I'm having similar problems with other files in that
directory too.

Thanks in advance,

-jon

_______________________________________________
users mailing list
[email protected]
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers