View Full Version : Change large image size.
mark355725
11-29-2009, 06:14 AM
Hi, I want to have the large images in powergallery showing at 400px high. Is this easy to change? I can't see it in the common.css file. Thanks, Mark
Office Guy-172461
11-29-2009, 06:26 AM
Have a look here:
Making pictures bigger
http://www.ipvac.com/kb/entry/213/
mark355725
11-29-2009, 08:26 AM
Thanks, is that related to powerGallery though? Regards, Mark
Office Guy-172461
11-29-2009, 08:55 AM
If you look at the category at the top of the page you will see that it is in the WebAssist PowerStore category.
Edit. It's look like the correct link is:
http://www.ipvac.com/kb/entry/194/
mark355725
11-29-2009, 09:48 AM
Hi again, I'm still a bit confused here. I'm looking how to change the image size in PowerGallery not PowerStore? Thanks, Mark
Office Guy-172461
11-29-2009, 10:02 AM
Sorry, rough weekend. Too many Powers.
The only documentation I know of is:
http://assets.webassist.com/how-tos/powergallery_custom_gallery_ht.pdf
mark355725
11-29-2009, 11:01 AM
Thanks, I'll take a look at that. Cheers, Mark
Justin Nemeth
11-30-2009, 09:21 AM
Hi, I want to have the large images in powergallery showing at 400px high. Is this easy to change? I can't see it in the common.css file. Thanks, Mark
The galleries are designed to work with the image dimensions specified. For instance, if we take the ribbon+fullsize gallery, the top image is proportionally resized to fit in a 782x481 size. If you want to change the image size, just be aware the design might not work as well depending on your images.
In any case, if you open the index.php file for the gallery you are using, try just adding a height="400" attribute to the <img> tag that is created in the "fullsize" div. So, using ribbon+fullsize again, line 58 is where you would add that height attribute.
-justin
info319155
12-03-2009, 12:33 PM
I also need to change the size of the full-size image. I have checked over all posts and the help files for Power Gallery, but no real clues. The suggestion to add the image size on line 58 of the index.php only succeeds in causing it to hang.
I have managed to customise everything but this. Help much appreciated in this. Then an excellent product will become perfect.
Janice Tye
Justin Nemeth
12-03-2009, 01:07 PM
Please paste in line 58 after you made the modifications. Is it getting a syntax error when you try and run it?
-justin
info319155
12-04-2009, 12:46 PM
Hi, thanks for your help. I have solved it now. I was putting the height info in the wrong place. Line 58 in index.php in the Ribbon + Full Image gallery now looks like this:
echo '<img alt="" height="290" src="' . $gallery['images'][$i]['fullsize']['url'] . '" />';
All works well now. Thanks.
Janice
Justin Nemeth
12-04-2009, 01:15 PM
Cool, glad you got it working.
-justin
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.