-
-
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
Handle retina screenshots & other hidpi images sensibly #2985
Comments
This is getting more and more important for experimental, where otherwise the double-size screenshots end up massive on the wider timeline. |
Looks like https://github.com/hughsk/png-chunks-extract combined with detecting
is the right way to handle these. |
needs server to support 1600x1200 thumbnails for retina large ones. ideally need to cap maximum thumbnail size to 800x600 rather than expand to arbitrary widths. need to check that luke's funky timeline code doesn't get confused between naturalWidth and infoWidth etc. also need to consider whether to encode a resolution metric in the event rather than lying about resolution.
fixed by matrix-org/matrix-react-sdk#2439 |
Currently if you take a screenshot from a retina display and upload it into a room, it gets rendered at retina-pixel = native-pixel sizing. Instead it should be rendered at the correct dpi. Github recently fixed themselves to get this right; so should we.
The text was updated successfully, but these errors were encountered: