Une lightbox mise à jour pour une meilleure visualisation des images

We recently introduced an updated lightbox, built using PhotoSwipe, to improve the experience of viewing images and related files on Discourse. This new functionality has been rolled out across all our communities, so you can experience it in your community once you’ve updated to the latest version of Discourse.

What’s changed?

The changes here are pretty subtle. For the most part, the lightbox should function like you’d expect based on similar experiences in other applications.

When you click or tap an image, it opens within the lightbox and increases in size to make it easier for you to see. From there, you can download the image, view the original image, and zoom. If there are multiple images in the post, you can use navigate between them here, too.

It works great on mobile, too, where you can use common gestures like swiping and pinch-zooming.

Here are some images you can use to try it out:

Please let us know if you have any questions, notice any issues with the new lightbox, or have suggestions for further improvements!

15 « J'aime »

Oooh, I’m glad Photoswipe was chosen! I remember suggesting it for the feature rework like two years ago, given how I liked this library (I used it for personal projects), but the lightbox rework wasn’t actively worked on then.

Can’t wait to see it on my own forums!

I hope we will be able to swipe the pictures from a gallery by dragging the mouse left or right like on the PhotoSwipe website. It’s a minor feature, but it makes the experience really smooth on desktop.

2 « J'aime »

Thanks @Canapin, you’ve made me realize that I’ve missed the opportunity to add an image gallery to the OP so folks can try it out now.

Just tested this out, looks like you should indeed be able to swipe!

2 « J'aime »