Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Blazy PhotoSwipe

1,680 sites Security covered Drupal 9–11
View on drupal.org

This module integrates the PhotoSwipe image viewer with Blazy. It allows images displayed using Blazy formatters in fields and views to open in a swipeable PhotoSwipe gallery, including support for videos.

Provides a simple Blazy PhotoSwipe integration.

Apologies!
  • BP:8.x-1.4 is the last version which is compat between Blazy 1.x and 2.x, or PhotoSwipe 1.x and 2.x.

Requirements

  • Blazy (>=Blazy:2.18 including Blazy:3.x since BP:8.x-1.6+).
  • PhotoSwipe, optional to avoid unfixable CS issues with PSWP 5 since BP:8.x-1.5+. Both library versions will just work with/ without it.

Versions

Specific for PhotoSwipe 5:

  • Blazy (2.18+ || 3.x+).
  • BP 1.6+ || 2.x supports only v5.4.1.
  • BP 1.4+ supports only v5.3.7 (broken at some point due to breaking changes, as usual).
  • BP 1.3 supports only v5.1.7.

"Only" means the only tested versions. Normally broken if mismatched. For cross-compatibility, be sure to name the library folder as photoswipe, not PhotoSwipe, if any issues.

Features

  • Supports PhotoSwipe v4 and v5.1.7 since 1.3. Be sure to have the correct library, see PS4 to PS5 below.
  • Vanilla JavaScript, no jQuery required.
  • Has no formatter, instead integrated into "Media switcher" option of blazy-related contribs. This means PhotoSwipe will be available for free at Blazy, GridStack, Slick, Splide, Mason, and any blazy sub-modules which have field formatters, including Blazy Views fields for file ER and Media Entity. Either as Blazy static grids, Slick carousel single or multiple row grids, or GridStack dynamic grids.
  • Supports swipeable Videos if Video Embed Media (Blazy 1.x) or core Media (Blazy 2.x+) is installed.
  • Responsive image pan zoom is only available at PhotoSwipe library v5 and Blazy 2.3+ || 3.x+.

Installation

Usages

  • Go to any "Manage display" page, e.g.:
    admin/structure/types/manage/page/display
  • Find a Blazy, GridStack, Splide, Slick, or Mason formatter under "Manage display" for Image or Media fields.
  • Choose "Image to photoswipe" under "Media switcher" option. Adjust anything else accordingly.
  • Also available at Blazy Views fields under the same "Media switcher" option for File ER, or Media Entity, if using Blazy Views field.

How to change from PS4 to PS5, and vice versa

Repeat this every time changing library major versions.

  • Change the library accordingly and manually at your libraries folder.
  • Visit Blazy UI: /admin/config/media/blazy, and find PhotoSwipe under Extra settings.
  • Must clear cache due to cached hook_alter, and or regenerate CSS and JS assets only if needed: /admin/config/development/performance.
  • Ensure you can view the JS files in browsers manually, and press F5:
    • /libraries/photoswipe/dist/photoswipe.min.js?rblj1v
    • /modules/contrib/blazy_photoswipe/js/blazy.photoswipe.min.js?rblj1v
    • /modules/contrib/blazy_photoswipe/js/blazy.photoswipe5.min.js?rblj1v

    Change the token after "?" as per your install. Press CTRL/CMD + U for sure, and press End to reach them out.

  • Ensure you see the correct library version at the top of the file: 4 or 5, only if changing them. By default, always 4.
  • If you have file permission issues: 404 (not found) or 403 (forbidden), please fix it accordingly and manually at your server.
  • Only if any issues, use Drupal UI to clear cache, if drush cr failed. Also press CTRL/CMD + R or F5 to clear/ refresh browser cache. Some browsers are stubborn due to caches.
  • Disable BigPipe if any errors noticed with keyword BigPipe due to unwanted CSS and JS re-ordering issues. Should be no BigPipe issues since Blazy:3.0.9.
Any reference to Media Entity (ME) or Video Embed Media (VEM) is deprecated for core Media with oEmbed at Blazy 2.x+.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
May 2023
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.x-dev Dev 11 Jul 6, 2026
2.0.1 Stable 9–11 Apr 28, 2024
2.0.0 Stable 9–11 Apr 6, 2024
8.x-1.7 Stable 8–10 Apr 6, 2024
8.x-1.6 Stable 8–10 Sep 23, 2023
2.0.x-dev Dev 9–11 Sep 20, 2023
8.x-1.5 Stable 8–10 Sep 18, 2023
8.x-1.5-rc3 Pre-release 8–10 Aug 27, 2023
8.x-1.5-rc2 Pre-release 8–10 Aug 13, 2023
8.x-1.5-rc1 Pre-release Jul 29, 2023
8.x-1.5-beta1 Pre-release Jul 23, 2023
8.x-1.4 Stable May 16, 2023