-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightbox doesn't handle hi-dpi images (and shows retina images at 2x physical size rather than 1x physical size) #18496
Comments
The current behaviour was a conscious decision, see #17049 |
Related: #17114 |
...but #17049 was asking for the same behaviour that i'm asking for here: if the image is small, it starts at 100%, and you would click to zoom. If it's big, it's shrunk to fit on the page, and you click to zoom. So the current behaviour may be a conscious decision, but i'm not sure it's the right one? matrix-org/matrix-react-sdk#5916 sounds promising in terms of specifying dynamic zoom settings - can we change it so that we display at 100% by default (unless the image needs to be shrunk to fit on the page?) |
Yes, it should be |
Ah - the actual bug may be that the lightbox doesn't respect hi-dpi images (but the timeline does). So if you take a screenshot on macOS (e.g. the PNG below), the timeline renders it correctly at 2x dpi, but both the upload preview and then the lightbox view it at 1x dpi (i.e. twice as physically large as it should be). given 99% of the images i post on EW are screenshots, i assumed it was doing it for everything. (n.b. github correctly handles hi-dpi images, and shows the image here at the right physical size). |
see also #9530 |
No description provided.
The text was updated successfully, but these errors were encountered: