Module Description
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)!

The Photoswipe v5 compatible 5.x branch is currently in an alpha state, and not ready for production yet! Use with care! Feel free to help test this new addition!

Installation Manual Installation
* Require the module, e.g. via composer: "composer require drupal/photoswipe"
* Install the module
* Download the "PhotoSwipe-4.1.3" zip file
* Unzip and place the contents of the unzipped "PhotoSwipe-4.1.3" folder into "library/photoswipe" folder so that the folder structure is: library/photoswipe/dist/photoswipe.js
* Check the status report for errors

Alternative composer installation
* Require the module, e.g. via composer: "composer require drupal/photoswipe"
* Install the module
* Enable usage of third-party libraries using composer, see here for an explanation.
* Require the photoswipe library using "composer require bower-asset/photoswipe:^4"
* Check your status report



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.

Special thanks to Dmytro Semenov for creating the photoswipe library


Drupal 10
Use releases on the 4.x branch You may also try 5.x (Photoswipe 5) in development environments and report issues!

Drupal 9
Use releases on the 4.x branch. 3.x is now 4.x - same code, to match the Photoswipe versions. You may also try 5.x (Photoswipe 5) in development environments and report issues!

Drupal 7
The Drupal 7 version depends on jquery_update (>2.2). Because PhotoSwipe needs a jQuery version bigger than 1.5, jquery_update version 2.2 won't work. Please use the 2.3 version and make sure you have selected jQuery version 1.7 (recommended) or 1.8 in jquery_update settings.

Drupal 7 version information:
* Branch 7.x.4.x: For PhotoSwipe v4.x
* Branch 7.x.1.x: For PhotoSwipe v3.x (NOT SUPPORTED ANYMORE!)

Additional modules:
* https://www.drupal.org/project/responsive_photoswipe for use with https://www.drupal.org/project/picture

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)

Project Usage
8426
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the problem of displaying picture galleries on a Drupal website using the Photoswipe Javascript lightbox/modal library with mobile browsing features.
Data Name
photoswipe

OPENAI CHATBOT

OPENAI CHATBOT

02:05:40
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.