Skip to content

Viewer: Dynamically set image src, width and height to match current zoom level and viewport size #4704

@lastzero

Description

@lastzero

As a user with high resolution photos, I would like the new hybrid photo/video viewer to automatically load a higher resolution thumbnail based on the current zoom level and screen resolution.

  • Check the PhotoSwipe 5 documentation for the best way to implement this feature request, e.g. use a callback function or provide a srcset to let the browser decide which image to load (if possible/supported).
  • Once you know how to do it, give an update (e.g. comment on this issue) and implement it as a proof-of-concept for further UX testing and testing with different browsers/devices.
  • The final version must be fully compatible with all previously supported browsers and devices.

Related Issues:

Metadata

Metadata

Labels

frontendRequires experience with HTML/JS/CSSreleasedAvailable in the stable releasetestedChanges have been tested successfullyuxImpacts User Experience

Type

No type
No fields configured for issues without a type.

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions