Changing the mini thumbnail size in Delete Items pages

hansooloo

Joined: 2010-01-06
Posts: 4
Posted: Sun, 2010-12-26 08:44

I would like to delete multiple images from the album, but it's very tedious to click Delete and click Yes every time. So, I wanted to use the Delete Items feature, which is easier to use. However, the thumbnails in that view are very small and I cannot really tell what the picture looks like.

Is there a way to specify the mini thumbnail sizes that G2 generates when images are uploaded?

Quote:
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.14 apache2handler
Webserver = Apache
Database = mysqlt 5.0.33, lock.system=flock
Toolkits = Exif, Getid3, LinkItemToolkit, Thumbnail, Gd, Ffmpeg, jpegtran
Acceleration = full/900, full/900
Operating system = Linux N7700 2.6.23N7700 #1 SMP Fri May 21 13:26:56 CST 2010 i686
Default theme = matrix
gettext = disabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Rows in GalleryAccessMap table = 32
Rows in GalleryAccessSubscriberMap table = 1079
Rows in GalleryUser table = 2
Rows in GalleryItem table = 1077
Rows in GalleryAlbumItem table = 52
Rows in GalleryCacheMap table = 5

 
hansooloo

Joined: 2010-01-06
Posts: 4
Posted: Sun, 2010-12-26 11:44

Found my own answer after hacking around some source files.

Go to modules/core/templates/ItemDelete.tpl and replace

Quote:
maxSize=50

to

Quote:
maxSize=150

to have thumbnails that are either 150px wide or 150px high, depending on the orientation. BTW, make sure Acceleration and Template Caching are disabled under Performance option in Site Admin.

I also modified ItemDelete so that it displays more than 2 columns of pictures in the table with items to delete. Edit the following portions:

Quote:
{cycle values="1,2,3,4" assign="alternate"}

where values should have a series defined for the number of columns you want to have.

Quote:
{if $alternate==4}</tr>{/if}

where alternate==X should match the number columns you want to have.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2010-12-26 16:02

Thank you for researching and posting this!