tranduyhung / grav-skeleton-big-picture

Big Picture skeleton for Grav CMS
MIT License
8 stars 8 forks source link

Add a portrait photo to Gallery #6

Open Dan458 opened 6 years ago

Dan458 commented 6 years ago

Is it possible to add a portrait photo to the gallery without it displaying the full image?

I maybe doing something wrong, or its my understanding. But if i create a thumb of dimensions 440 x 277 and a full 720 x 1080, the gallery always displays the full image and not the thumb.

Thanks Dan

tranduyhung commented 6 years ago

When you click on a thumbnail, a full image is shown in the modal. You can set the max values of thumbnail's width and height with "Thumbnail's Max Width" and "Thumbnail's Max Height" option (if you use Admin plugin) or "thumbnail_max_width" and "thumbnail_max_height" if you edit your page's Markdown file directly.

Because these values are applied to all the thumbnails, so it is better that all the photos you have are portrait or landscape, otherwise a portrait photo's thumbnail doesn't look good if you have width and height values for landscape photo and vice versa.