Page 1 of 2

Larger Thumbnails for Album

Posted: Tue Oct 31, 2006 4:12 pm
by patty
I cannot figure out how to make album create larger thumbnails - does anyone know where I can make this change?

Re: Larger Thumbnails for Album

Posted: Tue Oct 31, 2006 4:54 pm
by tsw
hmm, I think that album uses thumbnails created by imagemanager... so it might lack the option of setting thumb sizes

Re: Larger Thumbnails for Album

Posted: Sat Jan 06, 2007 10:30 am
by JohnR
Did you know that there is a config.inc.php in lib/filemanager/ImageManager? That is where you will need to change the following setting (shown already changed).

Code: Select all

/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 180;
$IMConfig['thumbnail_height'] = 180;
JohnR

Re: Larger Thumbnails for Album

Posted: Sat Jan 06, 2007 5:00 pm
by Dr.CSS
Actually you can control it with the CSS, it's already set to show them bigger than they are and you can increase it here...

.thumb img, .thumb a img, .thumb a:link img{ /* Set link formatting*/
width: 150px; /* Image width*/  standard thumbs are 96px default, in album CSS is 100px, bump it up till you like the results, note it can start to pixalate(?sp) the images if set too large
eight: 100px; /* Image height*/  I don't use this as images can be taller than they are wide, increasing the width w/o increasing the height here will let them increase their height accordingly

Re: Larger Thumbnails for Album

Posted: Sun Jan 07, 2007 10:57 am
by JohnR
Hm, but I think that will just scale the small thumbs. To have the ImageManager generate larger thumbs in the first place, you need to change the settings I noted above.

You also do need to modify the stylesheet to get the thumbnails the size you like. I simply uncommented the width and height eg

Code: Select all

.thumb a
{
	display:block;
	/* height:72px; */
	/* width:96px; */
Here is a site where I used Album with larger thumbnails:

http://www.violinsbythesea.com/instruments/violins.html

For this site it's OK for ImageManager to generate big thumbs for all images.

Re: Larger Thumbnails for Album

Posted: Sun Jan 07, 2007 1:25 pm
by Dr.CSS
Yes it can be set in the .php but for some it's not a very comfortable thing to do and they may not want all thumbs to be larger...

BTW nice Violins, your link for close in the pop up image has the default blue underline for hover...

Re: Larger Thumbnails for Album

Posted: Thu Feb 15, 2007 9:23 pm
by ThomasD
I can´t get the bigger thumbnails to work ??? I have set them to 200 in config.inc.php in lib/filemanager/ImageManager and uncommented the width and height in the album stylesheet. Thumbs show to 200 px in imagemanager, but in the album they stay small as before the changes. Here´s the album: http://www.decker4u.de/index.php?page=romania
Thanks for some help - I´m new to this cms but am impressed by its flexibility.

@JohnR: How did you create this violin site - I would like to have the album function aka picture popups in content pages too.

Thanks,
Tom

Re: Larger Thumbnails for Album

Posted: Fri Feb 16, 2007 3:45 am
by ThomasD
Bigger thumbnails solved: The variable "autothumbnailsize" in Thickbox-with-next-prev-links was responsible for this effect. Commented it out, had bigger thumbs.

Re: Larger Thumbnails for Album

Posted: Mon Apr 30, 2007 2:50 pm
by fuquam
How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.

Re: Larger Thumbnails for Album

Posted: Tue May 01, 2007 11:13 am
by Dee
fuquam wrote: How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.
Look under Layout » Stylesheets.

From the Album module help:
An "Album Template Stylesheet" stylesheet for the default, ImageGallery, and Thickbox templates is installed with the module. This stylesheet is deleted when the module is uninstalled and may be overwitten by an upgrade, so you might want to use a copy if you modify it. Attach the stylesheet to the page template used.

To attach the stylesheet to your template:

  1. Go to "Layout -> Templates"
  2. Click the CSS icon (Attach Stylesheet to Template) button to the right of your template
  3. Choose "Album Template Stylesheet" from the drop-down menu.
  4. Click the "Add a Stylesheet" button.
Regards,
D

Re: Larger Thumbnails for Album

Posted: Thu Jun 14, 2007 3:37 pm
by johnmck
The stylesheet for the album isnt under layout stylesheets
neither is it when i follow the instructions to attach it to a template!

Re: Larger Thumbnails for Album

Posted: Thu Jun 14, 2007 6:59 pm
by johnmck
Hi,

I'm trying to get bigger thumnails. I set them to 140px by 140px in config.inc.php but no luck, for some reason they are still getting set to a height less than that!

see http://london.nswebhost.com/~templest/index.php?mact=Album,m2,default,1&m2albumid=1&m2returnid=51&page=51

Re: Larger Thumbnails for Album

Posted: Sun Jan 06, 2008 9:19 pm
by gman1384
I can't my thumbnails larger I changed the config, and then I changed the css for the page and they are not any bigger. Any advice I really like the violin site btw. I know this is an old post just having problems.

Re: Larger Thumbnails for Album

Posted: Sat Feb 09, 2008 12:29 am
by kilauea
I've just finished configuring Album to handle larger thumbnails and thought I should share what I had to do as it took way longer than I expected to find my way to this point.

First I applied JohnR's advice:
Alter lib/filemanager/ImageManager/config.inc.php:

Code: Select all

/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 145;
$IMConfig['thumbnail_height'] = 145;
That fixed up Image Manager to create larger thumbs for me but they were still displaying small in my Albums - Album program was resizing my thumbnails by setting a height attribute in the img tag on the page display. I could have fixed this by removing the autothumbnailsize references completely from my tpl files (module/Album/templates/db/*.tpl) but I wanted my rows to be uniformly scaled so:

Alter modules/Album/classes/module/class.Album.php

Code: Select all

// Make tall thumnails fit in box
	if ($picture->thumbnailheight > 108)
	{
		$picture->autothumbnailsize = ' height="108"';
	}
That was working but it seemed to only be working for 1 of my albums. After checking the database table cms_module_album_pictures I found I had to manually change some height/width values for items in the album that had already been set before I started changing the thumbnail sizes. But there we go - working larger thumbnails!
Cheers!
Alane

Re: Larger Thumbnails for Album

Posted: Thu Jan 28, 2010 10:45 am
by r00ki3
kilauea wrote: I've just finished configuring Album to handle larger thumbnails and thought I should share what I had to do as it took way longer than I expected to find my way to this point.

First I applied JohnR's advice:
Alter lib/filemanager/ImageManager/config.inc.php:

Code: Select all

/*
  Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 145;
$IMConfig['thumbnail_height'] = 145;
That fixed up Image Manager to create larger thumbs for me but they were still displaying small in my Albums - Album program was resizing my thumbnails by setting a height attribute in the img tag on the page display. I could have fixed this by removing the autothumbnailsize references completely from my tpl files (module/Album/templates/db/*.tpl) but I wanted my rows to be uniformly scaled so:

Alter modules/Album/classes/module/class.Album.php

Code: Select all

// Make tall thumnails fit in box
	if ($picture->thumbnailheight > 108)
	{
		$picture->autothumbnailsize = ' height="108"';
	}
That was working but it seemed to only be working for 1 of my albums. After checking the database table cms_module_album_pictures I found I had to manually change some height/width values for items in the album that had already been set before I started changing the thumbnail sizes. But there we go - working larger thumbnails!
Cheers!
Alane
Thnx! your solution it solved the problem!
However...the editing the database is not necessary if you use the following code:

Code: Select all

// Make tall thumnails fit in box
	if ($picture->thumbnailheight > 0)
	{
		$picture->autothumbnailsize = ' height="0"';
	}
This way it takes the actual height and width of the thumbnail...no matter what the size is.