Image Height in Siriux
Sarah1967
Joined: 2005-09-10
Posts: 2 |
Posted: Sat, 2005-09-10 23:29 |
Hello I've been running an embedded gallery for quite some time with Gallery2, and everythings been just fine. However since I started to upload some new work I've hit a snag, which I think may be css related. I'm currently using the Siriux theme, which was tweaked to the way I wanted it to look, however after hours of trying to fix this problem today I've ended up losing my customised theme.css. Oh well, can't win them all I guess. What's happening is that I've uploaded some images that are taller (up to 600x1000.. I want them to show at original size, but everytime the page loads it springs it back to a smaller heigh, and the resized image is quite poor. Example here: http://www.sarahow.co.uk/blog2/v/ingame/TSSstore.jpg.html The above looks ok if I use the wordpress theme, so it does seem to be Siriux related. But telling the album to 'keep original size' and setting the image size limit as high as I can doesn't seem to make any difference. Could anyone tell me where to look for the problem in Siriux? I'd really appreciate it, I've deleted the whole gallery, upgraded, reinstalled, and generated more resized images than you could shake a stick at and I'm a bit stuck now. :cry: Many thanks if anyone can point me at the right line of code. Regards, Sarah ps. Apologies if this is in the wrong place! |
|
Posts: 16504
You're going to have to modify the theme. The Siriux theme was not designed for large images. This person is having the same issue:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=167467#167467
You might want to look into having the thumbnail and then when clicking on it, a new window or page view is opened that is formatted to handle the larger images. You might want to look at some of the user mods/patches for ideas:
http://codex.gallery2.org/index.php/Gallery2:UserContributions#Mods.2FPatches
And possibly how it's done in the WordPress theme, http://www.ozgreg.com/wpg2/BBC/
http://codex.gallery2.org/index.php/Gallery2:UserContributions#Themes
Posts: 2
Okay, I feel a little sheepish now. The solution was a lot simpler than I thought it would be. :oops:
All I did was right click to see what height the image had been resized to, then did a find/replace in a text editor for that number (690 in this case)
I found it in the second file I searched:
Line 32 of photo.tpl
I just replaced the 690 with 1200 and everything is now fine.
I just have to remember not to upload anything wider than 700 pixels or it'll bust my theme.
Thanks for your help, I couldn't see the wood for the trees on this one. I was looking at the css instead of the tpl files.
Thank you !
Posts: 16504
No problem. You might want to look at the Size Limit module as it can resize your images, if larger, down to the size you specify. It will actually resize the image instead of them just getting squished with HTML.