Topic: Change Size of gallery thumbnails?

Is it possible to change the size of the gallery thumbnails (The ones in the gallery index, not the ones with the pictures)? I would really like them a bit larger. I don't mind changing code if that's what it would take.

Thanks in advance!

Best,
DMR

Re: Change Size of gallery thumbnails?

All the thumbnails are the same size. That is the ones in the index page, the ones in the svManager images page and the ones inside SimpleViewer galleries. So the easiest way to get larger thumbnails in the index page is to increase the size of all the thumbnails. You won't see any change inside SimpleViewer because it resizes to it's own default of 65px. You won't see any change in the svManager images page because the browser will display at 65px according to the attributes of the img tag.

To do this, change the following settings in the svmanager/includes/constants.php file:

// Actual size of thumbnail image in pixels
define('THUMB_SIZE', 65);
// Width attribute for <img> tag in galleries index
define('INDEX_THUMB_WIDTH', 65);
// Height attribute for <img> tag in galleries index
define('INDEX_THUMB_HEIGHT', 65);

Change the 65 to your new size.

Obviously this is a bit wasteful on disk space and bandwidth since you are creating larger thumbnails and reducing them again but the real disk space and bandwidth use is in the images themselves. In theory there is also a reduction of the quality of thumbnails in SimpleViewer but I just ran a test and I can't really see any difference.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Change Size of gallery thumbnails?

Brilliant! Thanks again for the great help!