[BUG] Error occures when resising image / Navigation problem

DiLDoG

Joined: 2005-01-26
Posts: 8
Posted: Sun, 2005-02-20 17:42

I'm not registered @ sourceforge to I tought I should report it here:

1: My target thumbnail width is 150px.
when I create a 150x150px G2Audio.jpg it generates an error when adding audio files.

2: The previous/next buttons are really messed up, for example, "next" on http://domain.tld/main.php/v/album/100_0284.JPG.html links to that same page.

(using G2/gallery2.2005-02-20-09-32-27.tar.gz)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-20 18:02

2) known bug

1) "generates an error" is not enough information to get any help

 
DiLDoG

Joined: 2005-01-26
Posts: 8
Posted: Sun, 2005-02-20 19:44

An error has occurred.

Error (ERROR_TOOLKIT_FAILURE)

* in modules/gd/classes/GdToolkit.class at line 635 (gallerystatus::error)
* in modules/gd/classes/GdToolkit.class at line 611 (gdtoolkit::_getimagedimensionsforresource)
* in modules/gd/classes/GdToolkit.class at line 117 (gdtoolkit::_getimagedimensions)
* in modules/core/classes/GalleryDerivativeImage.class at line 199 (gdtoolkit::getproperty)
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 691 (galleryderivativeimage::rebuildcache)
* in modules/core/classes/GalleryCoreApi.class at line 760 (galleryderivativehelper_advanced::rebuildcache)
* in modules/core/classes/GalleryLayout.class at line 693 (gallerycoreapi::rebuildderivativecache)
* in layouts/matrix/layout.inc at line 269 (matrixlayout::loadlayouttemplate)
* in layouts/matrix/layout.inc at line 156 (matrixlayout::_loadalbumtemplate)
* in modules/core/ShowItem.inc at line 135 (matrixlayout::loadtemplate)
* in modules/core/classes/GalleryView.class at line 246 (showitemview::loadtemplate)
* in main.php at line 286 (showitemview::doloadtemplate)
* in main.php at line 46
* in main.php at line 39

System Information

Gallery version 	2.0-alpha-4+
PHP version 	4.3.10 apache2handler
Webserver 	Apache/2.0.46 (CentOS)
Database 	mysqlt 4.0.23a
Toolkits 	Gd, SquareThumb
Operating system 	Linux designism.jronline.nl 2.4.21-20.EL.c0 #1 Thu Sep 9 02:07:03 EDT 2004 i686
Browser 	Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-20 20:22

much better, thanks :)
looks like Gd is failing to get the dimensions of the image.. maybe try ImageMagick or NetPbm?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-02-20 20:25

maybe the image is corrupted...
could we handle corrupted images more gracefully? like, no error but a message "image xy seems to be corrupted or has a wrong extension" or something like that.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-20 20:31

he mentioned uploading an audio file and expecting thumbnail manager to use G2audio.jpg for the thumbnail.. so i hope the image isn't corrupted.
DiLDoG, you can confirm by going to modules/thumbnail/images/G2audio.jpg in your browser.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-02-21 01:25

fix for (2) committed, try again with tomorrow's snapshot.

 
DiLDoG

Joined: 2005-01-26
Posts: 8
Posted: Tue, 2005-02-22 15:48

no the image wasnt corrupted, I guess gallery gets confused when the orriginal image size is the same as the thumbnail.

I'll try to update to the new snapshot.

If I just overwrite everything except my g2data dir, and I run the upgrade script, will it be ok? I've got like 600mb data so re-adding everything isnt really fun.