miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Asymmetrical cropping as an option #293

Open acwolff opened 5 years ago

acwolff commented 5 years ago

If due to the selected row height and the dimensions of the current view-port an image can't be fully displayed, the image is vertically cropped.

The cropping is done symmetrically: the same amount at the top and bottom is applied.

Because I have a lot of landscape photos, the top contains mostly just the sky and the important part of the photo is at the bottom.. So I wonder is it also possible to do all cropping at the top? If that is not yet possible could you please add that as an option in a future release?