GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PhotoSwipe v6 plans - need feedback · dimsemenov/PhotoSwipe · Discussion #2170

PhotoSwipe v6 plans - need feedback #2170

Pinned
dimsemenov announced in Announcements
PhotoSwipe v6 plans - need feedback #2170
@dimsemenov dimsemenov
Dec 4, 2025 · 22 comments · 33 replies
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov
Dec 4, 2025
Maintainer

Hey guys,

I'm developing the new version of PhotoSwipe. This thread is to gather some feedback, if you have ANY suggestions please post below.

TLDR new features:

  • Split into ZoomView, PageView, and Dialog
  • Headless core - UI will be completely separated
  • Animation between slides
  • Support for images with no predefined size
  • Modernizing tech stack - rewrite to Typescript, dropping old browser support
  • Updating Video, Caption, Tiled Zoom plugins

Split into smaller components - ZoomView, PageView, and Dialog

All components will be headless; they will require only minor CSS that does not alter their appearance.

Primary use cases that I target:

  • Single zoomable image on a page (only requires ZoomView)
  • Lightbox that shows a single zoomable image (only requires Dialog + ZoomView). You also have an option to use your own dialog component.
  • Fullscreen image gallery (or almost fullscreen, with sidebars, think Google Photos or Lightroom-like layout).
    • Such a gallery can be opened in Dialog or embedded "inline" on a separate page.
    • Developers may use CSS View Transition if they need an animation to a separate page.
    • Gallery should support virtualization - display thousands of photos at a time

New UI structure

UI will now be completely detached from the core. You may include a default one, or write your own.

The plan is to have several UI's to choose from that you may use as a starting point - some are raw CSS, some are Tailwind-based, some are designed for specific frameworks like React or Svelte.

The core PhotoSwipe class will be kept for backwards compatibility

I'm keeping it so it's easier to migrate to the new version if you don't want to bother with new components.
It will just combine all these packages and work similarly to how it worked before.

Transition between slides

The new version will support unobtrusive crossfade animation between slides, with an API to add other transition types.

Images with no predefined width/height

Many asked for this, and finally, this feature will be coming in the new version. However, when dimensions are not predefined, these features will not work:

  • "zoom" opening transition for the dialog
  • Image placeholders
  • Dynamic srcset sizes adjustment

Modernize tech stack - rewrite from JS typedoc to Typescript

The current version is written in JS, which is not nice. There are also several bits of code that are there just to support old browsers - new version will use modern features - Web Animation API, Pointer Events, <dialog> element, etc.

All code for these components and plugins will be kept as monorepo.

I did try to use CSS Scroll Snap and only native browser features, but it just does not play well when you also try to implement zoom feature.

Video, Caption, Thumbnails, Tiled Deep Zoom plugins

These plugins will receive a major update so they're compatible with the new version.

Other minor features and improvements that are planned

(will be added as plugins, or as examples)

  • Vertical layout
  • RTL support
  • Open in native fullscreen immediately (if available)
  • Thumbnail/bullet navigation
  • API to add stuff over images (such as annotations)
  • Images in PageView will be loaded a bit differently - center image will receive higher priority, nearby will start loading only after current slide is loaded.
  • Shadow DOM support and usage as webcomponent example

I'll publish the alpha version when it's good enough, so you can contribute.

If you have ANY feature requests or anything like that, please post below or email me.

You must be logged in to vote
All reactions
  • 👍 25
  • 🎉 31
  • ❤️ 29
  • 🚀 13
  • 👀 9

Replies: 22 comments · 33 replies

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

fazalmajid
Dec 4, 2025

I'd love it if there were a plugin to detect/embed 360 degree panoramic photos, e.g. using https://aframe.io/examples/showcase/sky/

In principle that should even work with VR goggles

You must be logged in to vote
All reactions
  • 👍 2
  • ❤️ 2
6 replies
@fazalmajid
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

fazalmajid Dec 4, 2025

Here's how Immich does it: the thumbnails have an oval circular arrow icon as a hint, and when you click it, you get the immersive viewer with always-on controls:

https://immich.majid.org/s/pano-samples

All reactions
  • 👍 2
@acwolff
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

acwolff Dec 4, 2025

I use several 360 spherical viewers with the current PhotoSwipe version, see https://andrewolff.jalbum.net/PS_SpherePan/

All reactions
@syanenko
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

syanenko Dec 20, 2025

Absolutely agree - I also would  like to see panoramas support in the next version, atleast simple cylindrical. Now I am using the Tiled Deep Zoom plugin (btw, it's a brilliant addition, that works very well) to zoom panos enough and then draggin them from side to side, dreaming about a looping. Here is example: https://yesbird.online/photo/panex.html

As for mobile interface, why not consider two-finger swipes ? On desktop it's possible to use arrows for sliding and rotate panorama by mouse dragging.

Many thanks for this HQ product, looking forward to try new alpha !

All reactions
@epicyoung
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

epicyoung Mar 13, 2026

YESS~!!!!!

All reactions
@dewers0820-art
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dewers0820-art Oct 30, 2026

any update

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

JPustkuchen
Dec 4, 2025

That sounds GREAT! We're especially looking forward to thumbnail image navigation below or besides the main image in the modal! <3

I also agree that supporting 360° images and other media like videos would be fantastic in the future, but maybe as plugins to keep the core tiny?

Thank you so much, you're genius @dimsemenov! As soon as it's ready, we'll work on a new Drupal CMS Open Source Module version on our side :)

You must be logged in to vote
All reactions
  • ❤️ 5
2 replies
@megaarmos
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

megaarmos Dec 7, 2025

You can check out a plugin I have made photoswipe-thumbs-plugin for now

All reactions
  • ❤️ 1
@brokenalarms
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

brokenalarms Dec 7, 2025

Gave this a go but it doesn't seem compatible with datasource-based entries, which I use for customizing locking my thumbnail order in with my image order. Have lodged an issue separately now to not hijack this thread.

I'm sure it's great for the base use case! But look forward to full integration in v6.

All reactions
  • 😄 1
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

thomasfrobieter
Dec 4, 2025

Split into smaller components - ZoomView, PageView, and Dialog

But Photoswipe will still be available as a complete "out of the box"-solution?
We have had very negative experiences with Vidstack in this regard 😅

You must be logged in to vote
All reactions
2 replies
@JPustkuchen
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

JPustkuchen Dec 4, 2025

I guess you mean it should be easily to use Photoswipe pre-built without extra build-step in a script-tag from local library (GDPR) or CDN?

All reactions
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Dec 4, 2025
Maintainer Author

The license for the core part of the library will not change.

All reactions
  • 👀 2
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

jsayer101
Dec 4, 2025

Nuxt/Next integrations ? 😄

You must be logged in to vote
All reactions
2 replies
@JPustkuchen
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

JPustkuchen Dec 4, 2025

I don't think that's a job for @dimsemenov, but for the open-source community! Nuxt at least has a module concept, so anyone can start writing a module integration: https://nuxt.com/modules
(And of course I'd love it ;))

All reactions
  • 👍 1
  • ❤️ 1
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Dec 4, 2025
Maintainer Author

There are several levels to framework integrations. I'm improving some:

  • UI is now detached from the core - you'll be able to render it with whatever component library you want. I will provide examples for various frameworks.
  • ZoomView can be initialized from the DOM, so you can lazily initialize and SSR it
  • PageView uses virtualization similar to Tanstack Virtual, where you get a function that should render a slide.
    • However, default slide renderers are vanilla, and I don't see a point of rewriting them to x framework as primary usecase is to render a simple image.
    • Stuff like captions and meta information is generally placed in a sidebar, which can be rendered outside of PhotoSwipe.
    • It's possible to use stuff like React portals to render slide content itself via React

Also, note that PhotoSwipe is not trying to be "carousel", for basic carousel - please just use CSS scroll snap.

I'm not sure yet if I should create hooks like usePhotoSwipe or leave that to the community. For now, I'll focus on the vanilla version.

All reactions
  • 👍 6
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

picarica
Dec 4, 2025

i think this was requested for years but videos, html or embeded youtube ones. any would be great, just like images with internal player and disabled zooming nad moving gestures maybe. thank you for your work

You must be logged in to vote
All reactions
  • 👍 7
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

Blaztix
Dec 4, 2025

What great news!

I hope I can contribute in my own small way.

First, I'd like to show and suggest an improvement to the closing animation.

I'm having a problem when the image is drawn behind a floating object (fixed position) with a higher z-value. The animation is great, but it pops when it finishes.

I solved this by modifying the base code, adding a second animation with a different timing curve, adjusting the opacity, and I feel it's much better. (I don't like use fade animation)

Here's an example:

Original

ezgif-27df67b16747258b.mp4

Modified

ezgif-2f58c0a4068c6742.1.mp4

This only add a minimal ghost effect at the end of the animation.

Second, and this is a typical problem, I have a gallery of 30,000 images with no height or width.

So I modified it so that it can be loaded without these dimensions. When the main image arrives, the DOM is updated, the Slide view is updated, and a fetch is sent to the server to save the data to the database and display it the next time.

You must be logged in to vote
All reactions
  • 👍 6
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

utilsites
Dec 4, 2025

Feature request: Shareable URL that opens the gallery on the same slide

Hi!
I implemented this with custom code, but I’m not sure it’s the best approach, so I wanted to suggest it as a native feature.

Use case:
On a normal web page that contains a PhotoSwipe gallery, a user may be viewing (for example) photo #5 and wants to share a link with someone. The shared link should open the same page and automatically position PhotoSwipe on that exact slide.

At the moment, I’m generating URLs like:

/photo-galleries/1#slide=5

This works, not sure if it's the best approach, and it relies on custom logic to parse #slide= and open the correct index. It would be great if PhotoSwipe offered a built-in way to:

Show a share icon on top right corner, and generate a shareable link for the currently page with active slide.

Read that URL on page load and open PhotoSwipe at the correct slide.

This would make deep-linking to specific photos much simpler and more consistent.

Thanks!

You must be logged in to vote
All reactions
  • 👍 6
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel
Dec 5, 2025

I added a number of features for my WordPress plugin (https://codeberg.org/askaaron/lightbox-photoswipe) like swipe left/right in desktop view and fragment navigation which also allows direct linking to single images similar to PhotoSwipe 4.

Example: https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-5/#gid=1&pid=4

If you want to include this in the future to PhotoSwipe, I can assist with this as well. Just adding this as plugin may also be possible, but I did not create plugins for this yet, only for the fullscreen button, auto hiding of the UI and download button (feel free to use that for your own projects: https://codeberg.org/askaaron/photoswipe-fullscreen, https://codeberg.org/askaaron/photoswipe-auto-hide-ui, https://codeberg.org/askaaron/photoswipe-download)

You must be logged in to vote
All reactions
  • 👍 3
  • ❤️ 1
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

lastzero
Dec 6, 2025

Thank you for your past and future work on PhotoSwipe! Here are some ideas for v6 based on how we use it in PhotoPrism with tens of thousands of photos/videos:

Architecture & Components

  • Keep the new zoom/page/dialog split, and add low-level primitives (gesture engine, viewport store, item resolver) that don't depend on the shipped DOM.
  • Make UI packages optional/tree-shakeable; typed events instead of class-name hooks.
  • Native RTL language support: mirror navigation/swipes/keyboard without forcing users to reverse item arrays.

Headless Core & UI

  • Clear hook/slot surface for overlays, captions, sidebars, toolbars; avoid DOM coupling.
  • Allow UI parts to exist in different DOM roots or teleports while remaining subscribed to the core state.
  • Built-in caption renderer hook (with sanitization toggle and async resolver) so a plugin isn't required for basic captions.

Virtualized Galleries

  • Support getItemCount() + async resolveItem(index) so the lightbox can open items that are not mounted; allow the list to be extended while preserving currIndex.
  • Provide a tiny URL/history helper that syncs the current slide to a hash or search term for back and forward navigation with infinite scrolling.
  • Optional LRU cache controls to trim decoded images/posters on memory pressure.

Component Split / Building Blocks

  • Expose per-slide header/footer render callbacks for actions (select/edit/download) instead of re-implementing the top bar.
  • Offer a small "slide state" store (zoom, playing, selected) that UIs and plugins can subscribe to.

Plugins & Ecosystem

  • Typed plugin API with lifecycle hooks; publish capability flags.
  • Lightweight compatibility layer so community plugins (video players, 360°, annotations) can assert support across minors.

Migration & DX

  • Include a mapping guide from v5 options to v6 props/events, deprecation warnings in dev mode, and a codemod/lint rule for renamed options.
  • Maintain the "classic" wrapper, but issue a warning when v5-style item arrays are used; include a helper to convert to the new resolver API.

Accessibility

  • Default focus trap, dialog roles, labelled buttons, aria-keyshortcuts, and prefers-reduced-motion friendly transitions in packaged UIs.
  • Headless hooks for focus management and per-slide aria-label/aria-describedby; right-to-left (RTL)-aware keyboard and swap handling.

Performance & Media

  • Per-slide opt-out of default gesture handlers to keep custom HTML and video controls usable.
  • Preload policy setting (current +- N, or none) and cancel hooks for rapid swiping.
  • Deep-zoom hook for dynamic tile URLs and viewport change events.

I'm happy to help with testing and provide additional feedback, if needed :)

You must be logged in to vote
All reactions
  • 👍 4
2 replies
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Dec 6, 2025
Maintainer Author

That's amazing feedback, thank you. I did miss some of these.

Current plan is such API, got any thoughts about it?

import { PageView } from "@photoswipe/page-view";
import { MouseWheelZoomPan, ZoomView } from "@photoswipe/zoom-view";
import { ImageContent } from "@photoswipe/core";

const pageViewRootElement = document.getElementById("..");

const data = getImages({
  count: 100,
  maxWidth: 1200,
});

const testPageView = new PageView({
  viewportElement: pageViewRootElement,
  slideCount: data.length,
  slideRenderer: (index) => {
    const content = new ImageContent(data[index], {
      imageRevealMode: "fade",
      imageRevealDuration: 500,
    });
    return new ZoomView({
      content,
      maxZoomLevel: 3,
      plugins: [MouseWheelZoomPan.create()],
    });
  },
});

testPageView.on('change', () => {
  const slideContent = testPageView.currSlide;
  if (slideContent instanceof ZoomView) {
    console.log(slideContent.zoom); // access ZoomView API
  }
});

// testPageView.goTo(5); 
All reactions
@lastzero
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

lastzero Dec 6, 2025

The draft looks clean and promising! Here are some quick thoughts on it:

  • The modular imports are great, as is the fact that ZoomView is a building block. Could the slideRenderer accept async/Promise results? This would allow for lazy fetching of slide metadata or preloading of tiles before instantiating the view.
  • Consider letting slideRenderer receive a context object containing an index, id, viewportSize, and maybe a shared "services" object (cache, logger, history). This would help keep things in sync without globals.
  • Allow slideCount to be updated at runtime, and provide replaceSlides({ start, count, items }) so virtualized views can extend/trim data without tearing down the instance. If slides have stable IDs, an optional getSlideId(index) or key would help maintain per-slide state.
  • ImageContent looks good - could there also be a generic HtmlContent/MediaContent for videos/interactive slides? That way, we wouldn't need to subclass ZoomView just to display custom elements. Having a per-slide option to opt out of default gestures would also be helpful for mixed-media slides, especially if they use custom HTML/video controls.
All reactions
  • 👍 1
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

bakura10
Dec 9, 2025

Hi :),

We've been using Photoswipe on all our Shopify themes so far, great work on it! However, the usage always seemed a bit complex and that's the only dependency on which I constantly had to look the doc. What I would love:

  • If it could rely on native <dialog>
  • If we could use it as a web component, for instance:
<photo-swipe>
  <div slot="item"><img /></div>
  <div slot="item"><img /></div>
  <div slot="item"><img /></div>
</photo-swipe>

And have the webcomponent a simple API so that we could open it like this:

const instance = this.querySelector('photo-swipe').open({ index: 2 }); // Open the second image

Having some convenience for instance to animate from a thumbnail:

const instance = this.querySelector('photo-swipe').open({ index: 2, animateBounds: myImage }); // Open the second image with an animation from the myImage
You must be logged in to vote
All reactions
4 replies
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Dec 11, 2025

I wonder why you don't create smaller thumbnails as preview and link the real images like it is supposed to be:

  <div slot="item"><a href="fullsize1"><img src="thumbnail1" /></div>
  <div slot="item"><a href="fullsize2"><img src="thumbnail2" /></div>
  <div slot="item"><a href="fullsize3"><img src="thumbnail3" /></div>

This is is way how image galleries usually work - because otherwise you would have to load a lot of data for full sized images even when visitors don't even open the images in a lightbox.

All reactions
@smplrtrn
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

smplrtrn Dec 11, 2025

First I don't need thumbnails, second, v4 pre-loads at most 3 images (so there's always the one to the right and the one to the left pre-loaded), which makes it operate very effectively. Perfect for my usecases.

All reactions
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Dec 12, 2025

Then I may have misunderstood, what you want to achieve. The code you have shown above shows 3 images in the page, before the lightbox is even opened - but instead the images are not visible on the page at all but only in the lightbox?

All reactions
@smplrtrn
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

smplrtrn Dec 12, 2025

I did not share any code. Just using the gallery inline, as kind of simple carousel. It is just working fine this way in version 4. What I am up to is being able to use srcset in a semantically correct way inside img elements to achieve better leverage in balancing image quality and weight. Version five has it, but no inline gallery. Like @dimsemenov wrote it will come with version 6. Meanwhile I now use double resolution to solve density 2x issues, which will be fine to let go, when srcset is applicable with my setup, since it quite severely breaks my performance goals regarding images.

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

smplrtrn
Dec 11, 2025

I would very strongly wish for the return of the inline gallery. I use it a lot, and right now this keeps me from ditching version 4 - while I would really want to use srcset and such, which are only working from version 5 on. That being said PS is by far the slickest image slider when used as an inline gallery, while keeping things working very reliably and performance wise impeccable.

You must be logged in to vote
All reactions
5 replies
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Dec 11, 2025

When had PhotoSwipe 4 an inline gallery? Are you sure, this was a feature of PS 4 and not extra code you added?

All reactions
@smplrtrn
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

smplrtrn Dec 11, 2025

It was ditched with version 5, the release notes as well as the documentation explain in short, that it was because it were "rarely used". Well but it is used))) and working very well.

All reactions
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Dec 11, 2025
Maintainer Author

@smplrtrn

You'll be able to embed the gallery "inline" in the new version, but gestures will likely be locked. Various mapping libraries have a feature called "cooperative gestures" that allows zooming and panning but only with 2 fingers:

  • https://developers.google.com/maps/documentation/javascript/interaction
  • https://maplibre.org/maplibre-gl-js/docs/examples/cooperative-gestures/

I'll try to make sure that new version has API that would allow similar behavior.

It is technically possible to allow 1 finger pan (for example - if image is at bottom edge and user pans towards bottom - we yield the gesture to native browser scroll). But this adds a lot of complexity and forces into using touch events over pointer events. Having nested scrollviews is kinda bad ux in general - user can accidentally zoom/scroll the page when they wanted to zoom the image etc.

And if you don't need any zoom - your best best in just using native CSS scroll snap.

Do you have any examples of websites or native apps that have "inline" image zoom that works well on mobile?

All reactions
  • 👍 1
@smplrtrn
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

smplrtrn Dec 11, 2025

@dimsemenov Oh thanks! That's good to hear.

I'd rather not use zoom features, just using PhotoSwipe inline as sort of carousel without navigation, only left and right clicks and/or swipes, which is working just fine.

https://coido.de is currently the only openly accessible example where I am using PS inline. Image handling there has become quite rusty over the years, so the availability of srcset would help a lot with modernizing stuff, without switching to a completely different architecture. I have built static sites with dynamic islands (i. e. some ajaxing, masonry and PS in this particular case) for more than twenty years using Ikiwiki, which is mainly written in Perl, and is extremely robust because of that)))

Currently I am eager to be able to switch to srcset within the inline gallery, since it allows for a good balance of image quality and weight leveraging 2x, 3x density images as well as a variety of formats and the like without hacking my way through v4 to use srcset inside the picture element, which is semantically not correct for this use case.

So if I can see srcset support coming for my use case I will plan for some intermediate solution to ramp up image quality in another compatible way in the meantime - and change versions cleanly when 6 will be available. I worked with a bunch of carousel solutions, but had none of them perform as reliable as PS, even with videos, html and the like.

All reactions
@borisv
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

borisv Apr 14, 2026

Just a note: I have made quite some progress in modernizing the image pipeline within ikiwiki (img.pm and attachment.pm in conjunction with imagemagick). So now there is support for avif, webp, automated cropping, resizing and quality tweaking inside the standard image rendering of ikiwiki to provide PS with nine versions per image (avif, webp, jpeg, 1x, 2x, 3x) - all ready to be provided inside a picture element for each image.
I re-checked my demand for semantically correct usage of the picture element, and albeit not using it for layout, the element is still perfectly valid for density and variants of image formats.

So if development of PS sticks with the possibility to integrate via picture element, and provide a gallery function again (no lightbox) - everything is ready to test here.

If you need any other form of support, let me know.

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

michaelfluegge
Dec 15, 2025

I would be happy to have the possibility to change to a masonry layout, like the one https://cv.domagic.site/posts/masonry-gallery-for-publii describes.

You must be logged in to vote
All reactions
1 reply
@AlFirous
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

AlFirous Dec 24, 2025

I believe it's outside Photoswipe function. Masonry is gallery that shows many images in page. Photoswipe is lightbox that shows fullscreen image with slider. But you can use Masonry + Photoswipe.

All reactions
  • 👍 1
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

syanenko
Dec 23, 2025

I would like to see return of the Full screen button in the new revision. Yesterday I found that mobile Chrome has NO full screen button at all, so the annoying address bar eats too much space that is very important while making presentations. I found a workaround by installing Opera mini (btw it works fine and very comfortable), but I guess that it would be much better to have a native full screen support in the application.

You must be logged in to vote
All reactions
2 replies
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Dec 24, 2025

There are plugins available:

Fullscreen button: https://codeberg.org/askaaron/photoswipe-fullscreen
Download button: https://codeberg.org/askaaron/photoswipe-download
Automatic hiding of UI: https://codeberg.org/askaaron/photoswipe-auto-hide-ui

I created these for my WordPress integration (https://codeberg.org/askaaron/lightbox-photoswipe) but they also work with PhotoSwipe "stand alone".

All reactions
  • 👍 1
@syanenko
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

syanenko Dec 25, 2025

Many thanks, works fine !
It was exactly what I was looking for, download is also very useful.

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

chrisjacobs91
Feb 7, 2026

Just want to say thank you so much and can't wait to see the new version. Happy to test. All my requests have already been mentioned. ❤️

You must be logged in to vote
All reactions
  • 👍 3
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

simedia-manuelneumair
Feb 18, 2026

Hi there 👋
First of all — it’s great to see that a new major version of PhotoSwipe is in the works. Really exciting news!

We’ve had PhotoSwipe on our radar for quite a while and really appreciate its lightweight and performance-focused approach. However, we haven’t used it in production yet, mainly because a few key features are currently missing for our typical project requirements.

With that in mind, here are some ideas that could make v6 even more powerful:

  • iFrame support (e.g. embedded YouTube videos, Google Maps, or other external content)
  • Improved video support and especially proper mixed content handling — meaning images and videos within the same gallery
  • Optional Swiper.js integration/support for more flexible slider behavior
  • Hash navigation for deep linking to specific slides
  • Better support for responsive images, including built-in handling for next-gen formats like AVIF and WebP

If some of these are already planned — even better 😊
In our case, especially iframe and mixed media support would make PhotoSwipe a very strong candidate for us.

Thanks a lot for all the work going into this — really looking forward to seeing how v6 evolves! 🚀

You must be logged in to vote
All reactions
  • 👍 4
  • 👀 2
2 replies
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Feb 18, 2026

Just a comment about "hash navigation": I implemented this for PhotoSwipe 5 in my WordPress plugin "Lightbox with PhotoSwipe". So you may have a look at this if you like. I did not manage to implement this as PhotoSwipe 5 plugin (unlike other features I also added), but the code is open source:

https://codeberg.org/askaaron/lightbox-photoswipe

In particular see the frontend code here:

https://codeberg.org/askaaron/lightbox-photoswipe/src/branch/main/assets/ps5/frontend.js

And the additional plugins for automatic UI hiding, image download and fullscreen view:

https://codeberg.org/askaaron/photoswipe-auto-hide-ui
https://codeberg.org/askaaron/photoswipe-download
https://codeberg.org/askaaron/photoswipe-fullscreen

All reactions
  • 👍 1
  • 👀 1
@utilsites
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

utilsites Feb 18, 2026

Another comment on "hash navigation", I also implemented a solution described above, not sure if it's the best approach. It would be nice to have this kind of functionality on the next version.

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

RolandBischoff
Feb 28, 2026

I would really appreciate it if it were possible to add padding around the photos with custom CSS.

I'm using WordPress plugin "Lightbox with PhotoSwipe" by Arno Welzel and tried some custom CSS:

.pswp__img { background-color: white !important; padding: 80px; border-radius: 84px; }

That work's fine, but when opening the lightbox with a photo that has extreme landscape format like 3:1, a ghost image appears for one or two seconds:

2026-02-19 at 13 33 04

You may try yourself: https://01.site-bakery.com/pure-standard-version/

See also discussion here:
https://wordpress.org/support/topic/ghost-image-when-opening-the-lightbox/

Arno Welzel says, the padding conflicts with PhotoSwipe core code.

Maybe this can be solved in v6?

Edit: I corrected links.

You must be logged in to vote
All reactions
2 replies
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Feb 28, 2026

@RolandBischoff The WordPress link seems to be wrong. The displayed link is different from the target. This is the correct link:

https://wordpress.org/support/topic/ghost-image-when-opening-the-lightbox/

All reactions
@RolandBischoff
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

RolandBischoff Feb 28, 2026

Uuups, sorry. And thanks!
I'm new here and obviously still had to learn how to insert a link. :-)

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

HolgerSuhr
Mar 31, 2026

The history (hash) function in v4 was extremely important to me, because the back button of mobile devices didn't leave the page, as it does now in v5.
I'm still using v4 because of history, fullscreen, download and image caption.

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

rwardanjan
Jun 28, 2026

Hi, any update on development on a new version?

You must be logged in to vote
All reactions
1 reply
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Jun 29, 2026
Maintainer Author

Hey, still working on it, but no ETA yet sorry

All reactions
  • 👍 5
  • ❤️ 2
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

MSWEBX
Jul 13, 2026

Hey, loved your PhotoSwipe for many many years, it was smooth, fast, lightweight and easy to implement. But for my mobile experience i needed the hash pushState, so back button can close it without triggering page loads. I have also monitored this discussion here for some time to see the progress. I decided to create my own with claude code and i am now considering to publish it, not sure. Maybe there is something we can learn from. I spent a couple of days finetuning it, but tested only latest Chrome Canary so far: Demo is on this demo page: https://demo.cannabivo.com/

You must be logged in to vote
All reactions
1 reply
@arnowelzel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

arnowelzel Jul 13, 2026

I implemented this for my WordPress plugin to integrate PhotoSwipe (Lightbox with PhotoSwipe). Feel free to use the code - it is not available as plugin (other extensions are), as I did not have time yet, to check, if implementing this as plugin is possible:

https://codeberg.org/askaaron/lightbox-photoswipe/src/branch/main/assets/ps5/frontend.js#L295-L319
https://codeberg.org/askaaron/lightbox-photoswipe/src/branch/main/assets/ps5/frontend.js#L490-L516

The code is tested with Chrome, Vivaldi, Edge, Firefox, Safari including mobile versions. The plugin is used on more than 20,000 websites and so far I did not get any reports, that it does not work as expected.

Other features of my WordPress integration are available as PhotoSwipe plugins:

Auto hide UI: https://codeberg.org/askaaron/photoswipe-auto-hide-ui
Download button: https://codeberg.org/askaaron/photoswipe-download
Full screen: https://codeberg.org/askaaron/photoswipe-fullscreen

Practical use:

https://arnowelzel.de/en/projects/technology-museum/pocket-computers/sharp-ce-140f
https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-5/

Example for direct link to a single picture:

https://arnowelzel.de/en/projects/technology-museum/pocket-computers/sharp-ce-140f#gid=1&pid=7

All reactions
  • 👍 2
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

KODerFunk
Sep 7, 2026

@dimsemenov Thanks for v6! The headless-core direction — and specifically the "support for images with no predefined size" bullet — is where a small external loading scheduler can plug in: the zoom-driven resolution upgrades PhotoSwipe does via srcset are exactly that workload — width ladder, per-(image,width) dedup, shared concurrency cap, no-downgrade delivery, "serve the best known width now, upgrade when the sharper one is decoded".

I built one image-pump extracted from a production gallery with an imgproxy backend. If v6 wants to keep the core lean, "bring your own loading scheduler" could be a nice seam: the pump decides WHAT/WHEN to fetch, PhotoSwipe keeps owning gestures/zoom. Happy to prototype an adapter if there's interest.

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

rctneil
Sep 19, 2026

Any updates on V6?

You must be logged in to vote
All reactions
1 reply
@dimsemenov
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimsemenov Sep 19, 2026
Maintainer Author

work in progress, no date yet sorry

All reactions
  • ❤️ 9
  • 🚀 5
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

pxp1230
Oct 16, 2026

I want a function of rotating pictures, just like the photo album app of a mobile phone. Two fingers can rotate it. Of course, two fingers can also control the zoom, which will be more convenient to use on the mobile platform.

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
📣
Announcements
Labels
v6
30 participants
@dimsemenov @lastzero @fazalmajid @borisv @KODerFunk @JPustkuchen @rctneil @bakura10 @thomasfrobieter @Blaztix @arnowelzel @syanenko @rwardanjan @brokenalarms @jsayer101 @acwolff @pxp1230 @utilsites @chrisjacobs91 @simedia-manuelneumair @smplrtrn and others
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.