dimsemenov/photoswipe-deep-zoom-plugin is a open-source project on GitHub, written primarily in JavaScript. It has 75 stars. High-resolution tile-based image zoom plugin for PhotoSwipe
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A plugin that adds tile-based zoom support to PhotoSwipe. Supports Deepzoom and Zoomify tile formats.
Unlike conventional viewers such as OpenLayers or OpenSeaDragon, it displays tiles only when user zooms beyond the primary image size. If user does not zoom - PhotoSwipe operates as usual.
If you just want to display a single tiled image, consider using OpenLayers, OpenSeaDragon or Leaflet.
Initialization
The plugin requires a single JS file photoswipe-deep-zoom-plugin.esm.js. To view the source code visit src/.
Or install via NPM npm install photoswipe-deep-zoom-plugin.
import PhotoSwipeLightbox from './lib/photoswipe/photoswipe-lightbox.esm.js';
import PhotoSwipe from './lib/photoswipe/photoswipe.esm.js';
import PhotoSwipeDeepZoom from './photoswipe-deep-zoom-plugin.esm.js';
const lightbox = new PhotoSwipeLightbox({
gallery: '#gallery',
children: '.pswp-gallery__item',
pswpModule: PhotoSwipe,
// Recommended PhotoSwipe options for this plugin
allowPanToNext: false, // prevent swiping to the next slide when image is zoomed
allowMouseDrag: true, // display dragging cursor at max zoom level
wheelToZoom: true, // enable wheel-based zoom
zoom: false // disable default zoom button
});
const deepZoomPlugin = new PhotoSwipeDeepZoom(lightbox, {
// deep zoom plugin options, for example:
tileSize: 256
});
lightbox.init();
Tile URL. Can be also defined as tileUrl property of the slide data.
For example: https://example.com/images/my-image/{z}/{x}_{y}.jpg. {z}, {x} and {y} will be automaticlaly replaced with the corresponding tile coordinates.
If you're using Zoomify type, there in an additional template string {zoomify_group}. For example:
The viewer will load higher resolution tiles earlier on high DPI screens.
For example, if device pixel ratio is 2 (regular retina screen) and maxTilePixelRatio: 2, the viewer will render twice as many tiles.
If device pixel ratio is higher than maxTilePixelRatio, the viewer will render tiles according to the maxTilePixelRatio option. If it is lower - it'll render according to the device pixel ratio.
Build
To build and minify JS in dist/:
npm run build
To update GitHub pages:
npm run publish:demo
Changelog
v1.1
High dpi screens support, added option maxTilePixelRatio.
Added property pswp-max-zoom-width (pswpMaxZoomWidth) that allows increasing or reducing how far the slide can be zoomed.
The plugin now adjusts behaviour of the loading indicator, it's displayed when tiles are loading.
Added zoom keyboard shortcuts (+ and -).
Added reset zoom button, it's displayed when zoomed beyond x3 of the initial state.
Does dimsemenov/photoswipe-deep-zoom-plugin have a project website?
No homepage URL was recorded for dimsemenov/photoswipe-deep-zoom-plugin in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on dimsemenov/photoswipe-deep-zoom-plugin?
The most recent commit recorded on dimsemenov/photoswipe-deep-zoom-plugin was 4.6 years ago, based on the GitHub push timestamp. The repository has 8 forks — one of the better signals of community interest.
Is dimsemenov/photoswipe-deep-zoom-plugin open source?
TopGit's metadata for dimsemenov/photoswipe-deep-zoom-plugin does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What topics is dimsemenov/photoswipe-deep-zoom-plugin associated with?
GitHub's repository topics for dimsemenov/photoswipe-deep-zoom-plugin: "gallery", "images", "lightbox", "tile", "zoom". TopGit's editorial category is open-source.
Where do I read more about dimsemenov/photoswipe-deep-zoom-plugin?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/dimsemenov/photoswipe-deep-zoom-plugin is the definitive source.
Read full README in the tab above.
Still deciding about photoswipe-deep-zoom-plugin?
One click hands the question to an AI along with this page — see what it says about photoswipe-deep-zoom-plugin.