PhotoSwipe - Responsive JavaScript Modal Image Gallery
Security covered Maintenance fixes only 18,946 sitesThis module allows you to use the PhotoSwipe JavaScript library to display image galleries on your Drupal website. It offers a feature-rich, mobile-friendly lightbox experience with swipe gestures for easy navigation between images.
Use PhotoSwipe to display picture galleries on your Drupal website. This Javascript lightbox / modal library offers very nice mobile browsing features (in particular swiping to the next picture)!
Features
- A "photoswipe" and "photoswipe_responsive" image formatter compatible with image and media entities
- Ability to use photoswipe as an image formatter inside views
- (5.x only) A twig function to attach photoswipe to images in a custom twig template.
Installation
Module Installation
Install as you would normally install a contributed Drupal module. For further
information, see Installing Drupal Modules
Photoswipe 6 support
Photoswipe 6 is comming. We'd love to support it asap and need your support or sponsoring: #3561479: [6.x] Photoswipe 6 Support
Photoswipe 5 library installation
photoswipe:^5 only!
Composer (recommended)
See "Composer Installation (recommended)" in the README file.
Manual
See "Manual Installation" in the README file.
CDN
- Go to '/admin/config/media/photoswipe' and enable the 'Load PhotoSwipe library from CDN' option
- Check the status report for errors
Then simply configure your image fields to use Photoswipe as their field display handler.
Note: If you would like to use the "Photoswipe Responsive" display formatter, please enable the core "Responsive Image" module first.
Extending modules
- PhotoSwipe Inline Text Filter: Provides a Text Filter to make your inline images (e.g. images inserted through CKEditor for example) use photoswipe without manually adding HTML / CSS
Special thanks to Dmytro Semenov for creating the photoswipe library!
Miscellaneous
In PhotoSwipe 5 the "Photoswipe image caption" option is present on the regular Display page of image fields (on
/admin/structure/types/manage/library/display), but missing for the same image field in a View. The solution is Drupal core issue #2686145: Formatter third party settings missing from Views UI, and you can patch Drupal core until it gets fixed.
Supporting this module
Support DROWL's ♥ FOSS work on this module on OpenCollective!
Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!
We're committed to building and maintaining Drupal modules that benefit the entire community.
Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!
If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.
Support our FOSS development ♥️
You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!
Let's make Drupal even better, together!
Development proudly sponsored by German Drupal Friends & Companies:
webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)
Ask your assistant about PhotoSwipe - Responsive JavaScript Modal Image Gallery
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
4 tracked projects depend on this one
- Media Gallery 8,625 sites
- PhotoSwipe Inline Text Filter 195 sites
- Seeds Widgets 42 sites
- Btester Image Gallery