Increase the maximum height of journal photos
DavidJRoberts
Registered Users Posts: 8 Beginner grinner
Hi,
The Journal Gallery makes the height of an image fit to the height of my screen. While this is good for the lightbox view, I would like the image to be displayed at its full height in the journal view. You'll have to scroll on most screens to see the entire image but that's OK.
You can see the effects here: http://djr-io.smugmug.com/Design/CloudHarmony and some of my other design galleries. The long screen shot images that become quite skinny should be 100% width and quite tall. These images were on behance.com pro site where it fitted everything to the width and let the height be whatever it needed to be.
It doesn't affect my photo galleries but since I make all my money as a designer, I'd love for those design galleries to look right.
I can recut the images if need be but I line of code sounds better.
Cheers for any help. Really appreciate it.
The Journal Gallery makes the height of an image fit to the height of my screen. While this is good for the lightbox view, I would like the image to be displayed at its full height in the journal view. You'll have to scroll on most screens to see the entire image but that's OK.
You can see the effects here: http://djr-io.smugmug.com/Design/CloudHarmony and some of my other design galleries. The long screen shot images that become quite skinny should be 100% width and quite tall. These images were on behance.com pro site where it fitted everything to the width and let the height be whatever it needed to be.
It doesn't affect my photo galleries but since I make all my money as a designer, I'd love for those design galleries to look right.
I can recut the images if need be but I line of code sounds better.
Cheers for any help. Really appreciate it.
0
Comments
However, the tallest SmugMug display size is X3 large, which is only 1200 pixels tall. If your photos are at an aspect ratio of 2:3, that would give you a photo width on the page of just 800 pixels. If your photos are even skinnier, they'll get scaled even more, and the text won't be sharp. I don't think that the Journal style tries using your Original size images.
To do what you want to do, you'll need to use an HTML block on a custom page instead of using a gallery. Then you can add <img> tags which use your Original size graphics. You lose the Lightbox feature that appears when you click on a photo if you do this, though.
Starting with SmugMug's generated HTML, and removing all the clickable elements (<a> and the image info bar, as they won't work any more), then changing the image URLs to Original size, I get this HTML for that gallery:
Which looks like:
http://www.sherlockphotography.org/Test/n-C9s7M
Please check out my gallery of customisations for the New SmugMug, more to come!
Thanks so much.
Here's a simple / dumb follow-up... (sorry):
How did you pull that HTML from the page? I looked at the page source and saw where your first line started but it jumbled up soon after that.
Once I smarten up, I presume my process will be to create the gallery, pull the HTML, modify it then create a new page with this new html in it?
I may be way off so I'm open to being schooled! However, it may just be easier for me to reslice these images into smaller portions and redo the galleries that have tall images. There are only a few.
Appreciate your time, thank you.
http://ctrlq.org/beautifier/
Click the Format Code button so it tidies up the format for you. Now remove all of these divs and their contents: "<div class="sm-tile-info">" (that's the button bar at the bottom of the photos). Find all the image links like "<a href="#" class="sm-tile-content" data-clientid="sm-galleryimage-model_25">" and remove them and their closing tags "</a>", but keep their contents. Wherever it says "<div class="sm-tile"", after the "sm-tile", add a space and then "sm-tile-content" to make "<div class="sm-tile sm-tile-content"". Wherever it says "width: x%", change the percentage to 100%. Edit the URLs for your images to change the image size to O.
It'll probably be easier to split up those images like you say .
Please check out my gallery of customisations for the New SmugMug, more to come!
Hopefully your input will help someone else and if I ever want this effect again I'll know what to do.
Seriously, thanks!
David.