How to designate different thumbnail sizes?

thecreativeone

Joined: 2008-09-28
Posts: 16
Posted: Sun, 2009-06-21 05:26

Is there a way to have different thumbnail sizes for different albums? I'm trying to have my front page albums have large thumbnails and the actual sub-albums to have smaller thumbnails. This was possible with Gallery 2, but I can't seem to figure it out with version 3. Thanks!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-21 21:02

We don't have a feature to do that in Gallery 3. If there's sufficient demand, we can add it. Please file a feature request, thanks!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
nowsharing

Joined: 2008-08-08
Posts: 3
Posted: Fri, 2009-11-06 04:42

Has this option been implemented yet? I like to use slightly larger thumbnails for albums.

 
griffinmt
griffinmt's picture

Joined: 2009-09-06
Posts: 128
Posted: Sat, 2009-11-07 23:50

I too thought that this would be a usefull feature.
The thumbnail size is stored as a site-wide parameter at present. I would think that in the items table for the particular album you could store a value to override that size. It is only needed (I beleive) during the thumnail rebuild. and an interface to set the new value would also be needed.
- get new vaulue for album and store into its entry in items table (mark as dirty)
- update all items (photos) that have album as parent to set thumb-dirty
When rebuilding dirty thumbs:
- get system wide value
- get all album entrys that are dirty
- save desired thumbsize or set default
- process all dirty photo entries using saved thumbsizes

If someone thinks this is not the best way, let me know. Also, any clues about where most of this code belongs would save some time.

Martyn T. Griffin