Thumbnails and image sizes not working

androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Mon, 2005-02-14 01:43

I seem to have a problem with thumbnail and image size generation. All of my galleries display full size images instead of thumbnails, which makes things rather hard to view. When i do click on a single image, I'm not able to select an image size: only the full size is available.

This happens with both netpbm and ImageMagick. Has anyone else had these problems?
----

Gallery URL (optional): http://www.atopp.com/gallery2/main.php
Gallery version: Gallery 2 latest nightly (2-15-05)
Webserver (with version): IIS 6 / Windows Server 2003
Datatabase (with version): MySQL 4.1.9
PHP version (eg 4.2.1): 5.0.3
phpinfo URL (optional): http://www.atopp.com/phptest.php
Graphics Toolkit(s): ImageMagic 6.1.8-Q16, netpbm 1.14-pl2
Operating system: Windows Server 2003
Web browser/version: IIS 6, Opera 7.54, Mozilla 1.0

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Tue, 2005-02-15 18:22

bump...anyone?

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Tue, 2005-02-15 19:42

Sorry, I haven't seen this. You might want to enable debug mode and upload some more pictures and see if it is generating an error when it is sizing the picture down to make the thumbnails.

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Tue, 2005-02-15 22:45

what is the size for the tumbnail? (Go to Edit album -> Album tab -> Thumbnails). Make sure it's set to something like 150-200. Considering that you random image shows as a decent-size thumbnail, I think the problem is with some of the settings, rather than toolkit error.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-16 01:36

virshu, imageblock uses a maxSize param so it may be showing a large image but having the browser shrink it down to a reasonable size.. do 'view image' in the browser to check.

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Wed, 2005-02-16 13:22

mindless, you are correct. if i view image, it is still full size. however, if an automatic resize works for that, why not for image thumbnails.

my thumbnail size is set to 150. i will toss debug mode on and see if that can tell me anything.

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Wed, 2005-02-16 15:43

ok, with the buffered debug turned on, i think this is the output for photo display:

_className => GalleryPhotoItem
id => 12
creationTimestamp => 1108331079
isLinkable => 1
linkId => empty
modificationTimestamp => 1108331079
serialNumber => 1
entityType => GalleryPhotoItem
parentId => 10
pathComponent => archway in the morning 01.jpg
canContainChildren => 0
description => empty
keywords => empty
ownerId => 5
summary => empty
title => archway in the morning 01.jpg
viewedSinceTimestamp => 1108331079
originationTimestamp => 1029087094
mimeType => image/jpeg
size => 1714086
width => 0
height => 0
viewCount => 6
itemSummaries => Array (2)
customfield => empty
newitems => <img src="http://www.atopp.com/galler...

followed by the array containing the valid photo operations. i don't see any outward errors...but it also shows width and height of this image to be 0. is that normal? these images were all added using remote, so could that be causing a problem...and the answer is yes. i've added 4 images to the "CASA Boogie" gallery, and the thumbnails and image sizes work perfectly.

so...is anyone experiencing this problem with remote? the web interface for adding as many photos as i have to add is a little tedious.

thanks,
andrew

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-16 15:44

because thumbnails are intended to be displayed at the size they are created in album views. the sidebar isn't supposed to get too wide so there is a limit.
i agree you should find debug output for the toolkit operation that creates the thumbnail file.. see if you find any error output there, or try the commands from the command line and see if you can make a correctly sized thumbnail image.

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Wed, 2005-02-16 17:43

hmm. i see no debug output for the toolkit whatsoever. am i missing something?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-16 20:58

look in the debug output in the main window, not the popup smarty debug.
you need to make sure to view the debug output on the request where it is actually building the thumbnail.. easiest way is to add a new item and make sure "build thumbnail" is checked so it will make the thumbnail right when you do the upload.

 
androidtopp

Joined: 2005-02-02
Posts: 11
Posted: Fri, 2005-02-18 15:17

i see no references to my active graphics toolkit anywhere in either of the debug sections, for both the working, and the non-working gallery. it appears that problems on crop up when i add images through gallery remote. as i mentioned above, when images are added with gallery remote, the smarty debug shows their x and y dimensions as 0.

has anyone had problems with gallery remote and gallery2?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-02-22 00:19

Unfortunately, the GR integration with G2 is not moving along as fast as we'd like. We'll definitely fix this, but no estimate as to when.