Kris-B / nanoGALLERY

image gallery simplified - jQuery plugin. Touch enabled, responsive, justified/cascading/grid layout and it supports pulling in Flickr, Google Photos and self hosted images.
https://nanogallery2.nanostudio.org/
436 stars 100 forks source link

Flickr mode thumbnails #10

Closed Kotnicek closed 10 years ago

Kotnicek commented 10 years ago

If you define thumbnail size (both width and height) in script larger than 149px, thumbnail is suddenly displayed in its native aspect ratio, instead of being cropped and filling the container entirely. Is this intentional, and if so, can I change it, so that bigger thumbnails will still fill their respective containers?

Kris-B commented 10 years ago

Actually you can define the size of the thumbnail area and the plugin will try to get the best thumbnail image size to fit in this area. With Flickr, some image sizes are square and others are not. More details at http://www.flickr.com/services/api/misc.urls.html

Kotnicek commented 10 years ago

I see now, I didn't know Flickr API was providing so many different sizes of images, and for that matter, shapes. So that's why the pictures were square below 150px, but not over. The best solution in my case would then be uploading pictures to Tumlbr in fixed aspect ratio and set the thumbnail size respectively. Thank you very much for your quick reply.