Larger Thumbnails for Album

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
patty
New Member
New Member
Posts: 5
Joined: Tue Oct 31, 2006 4:09 pm

Larger Thumbnails for Album

Post by patty »

I cannot figure out how to make album create larger thumbnails - does anyone know where I can make this change?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Larger Thumbnails for Album

Post by tsw »

hmm, I think that album uses thumbnails created by imagemanager... so it might lack the option of setting thumb sizes
JohnR

Re: Larger Thumbnails for Album

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Larger Thumbnails for Album

Post 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
JohnR

Re: Larger Thumbnails for Album

Post 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.
Last edited by JohnR on Sun Jan 07, 2007 11:00 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Larger Thumbnails for Album

Post 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...
ThomasD

Re: Larger Thumbnails for Album

Post 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
ThomasD

Re: Larger Thumbnails for Album

Post 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.
fuquam

Re: Larger Thumbnails for Album

Post by fuquam »

How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Larger Thumbnails for Album

Post 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
johnmck
Forum Members
Forum Members
Posts: 34
Joined: Wed May 30, 2007 4:56 pm

Re: Larger Thumbnails for Album

Post 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!
johnmck
Forum Members
Forum Members
Posts: 34
Joined: Wed May 30, 2007 4:56 pm

Re: Larger Thumbnails for Album

Post 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
gman1384

Re: Larger Thumbnails for Album

Post 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.
kilauea

Re: Larger Thumbnails for Album

Post 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
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Larger Thumbnails for Album

Post 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.
Last edited by r00ki3 on Thu Jan 28, 2010 1:33 pm, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”