tranduyhung / grav-theme-big-picture

Big Picture theme is a port of Big Picture by HTML5 UP for Grav CMS
MIT License
15 stars 12 forks source link

Option to standardize gallery thumbnail size #13

Open teewhey opened 6 years ago

teewhey commented 6 years ago
image

Hi just wondering if you could consider to provide options to standardize thumbnail sizes. As of now, if i were to upload images with different orientation or aspect ratio, the alignment runs. I was hoping it would do some smart cropping so that I get a standard tile of images irregardless of what aspect ratio.

tranduyhung commented 6 years ago

That's the reason I added ability to choose manual thumbnails instead of let Grav automatically crops the images to create the thumbnails.

There is no "smart" cropping, there is only 1 rule and it is applied to all the images, this sometimes create problems, like text in image is cropped and unreadable, heads of people are cut off, etc...

teewhey commented 6 years ago

Can you point me to your documentations on how to choose manual thumbnails ? I'm new to PHP and Grav. Still need some time to understand certain stuff.

tranduyhung commented 6 years ago

I'm sorry that I should have mentioned that manual thumbnail was a work in progress. I thought of having 2 configuration options to choose between automatic thumbnail (like what the theme has now) and manual thumbnail which let user upload and choose specific thumbnails for all (or only some) of the gallery's images.

There are problems in backward compatibility and styling in front-end. When they are solved there will be a new version available.