Larger Thumbnails for Album
Larger Thumbnails for Album
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
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
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).
JohnR
Code: Select all
/*
Thumbnail dimensions.
*/
$IMConfig['thumbnail_width'] = 180;
$IMConfig['thumbnail_height'] = 180;
Re: Larger Thumbnails for Album
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
.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
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
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.
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; */
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.
Re: Larger Thumbnails for Album
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...
BTW nice Violins, your link for close in the pop up image has the default blue underline for hover...
Re: Larger Thumbnails for Album
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

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
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
How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.
Re: Larger Thumbnails for Album
Look under Layout » Stylesheets.fuquam wrote: How do you get to the CSS for the albums? I cn't find it under modules/Albums aywhere.
From the Album module help:
Regards,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.
D
Re: Larger Thumbnails for Album
The stylesheet for the album isnt under layout stylesheets
neither is it when i follow the instructions to attach it to a template!
neither is it when i follow the instructions to attach it to a template!
Re: Larger Thumbnails for Album
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
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
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
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:
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
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
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;
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"';
}
Cheers!
Alane
Re: Larger Thumbnails for Album
Thnx! your solution it solved the problem!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:
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:Code: Select all
/* Thumbnail dimensions. */ $IMConfig['thumbnail_width'] = 145; $IMConfig['thumbnail_height'] = 145;
Alter modules/Album/classes/module/class.Album.php
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!Code: Select all
// Make tall thumnails fit in box if ($picture->thumbnailheight > 108) { $picture->autothumbnailsize = ' height="108"'; }
Cheers!
Alane
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"';
}
Last edited by r00ki3 on Thu Jan 28, 2010 1:33 pm, edited 1 time in total.