Can you recommend a gallery plugin for kirby?
I’d like to display fullscreen, high-res images and lots of them (30 and more per project). So I need a plugin that does not preload all images at once. Also the plugin should only load the biggest version necessary for each device. (We don’t need 5K images on an iPhone 4)
I had a look at other kirby projects – most of them use one of these:
Thanks for your suggestions! I’ll have a look at all of them. Any thoughts on the usual suspects listed above? My impression is that these plugins perform quite differently because of the way they load pictures. One picture has somewhere between 250 - 400kb.
Have your worked with it on Kirby? Do you have a template by any chance? I was able to get it up and running but I’m not sure I have done things right…
Note that Photoswipe by default only works with predefined image sizes, which can make it more difficult to implement for some uses. But there are workarounds (see first item in the FAQ).
Nope, it was a Symfony project, Twig templates etc., and the implementation was rather specific to this website. (We showed 4 thumbnails for the first few images in a longer gallery, plus a custom button; so we fed Photoswipe a list of items to work with, added our own event listeners, etc.)
Many galleries need the images size to calculate the image ratio. This is fairly easy with kirby: echo $page->image()->ratio() However I wasn’t able to set up Photoswipe with responsive images.
I found another gallery that works great with large images: Fotorama I got it to work but I’m not happy. (for various reasons: performance, options…) Now I’ll give Flexsliders a try. Theres a plugin for lazy loading so let’s see how that goes…
I’ll post a summary as soon as I’ve found a suitable solution.
Lightgallery is great – I mentioned it in my original post. Looks like a new version came out two days ago. I’m going to check it out for sure!
Another tool I found is called Swiper. It has a great API, many options like preloading / lazyloading, carousel mode, vertical scrolling etc…
So far one of my favorite