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
Images with incorrect metadata should correct their depiction in the timeline once the image has actually been loaded #18616
Comments
I'm finding it a bit hard to tell but it looks like the image has been cropped - is that what's being demonstrated here? Probably we should letterbox it within the advertised container size? |
Before the mentionend commit it has been cropped, now it's size reduced and not well aligned. |
Reducing the size of the image seems to me to be a better way to handle this than cropping it though? |
Well, this doesn't change that it's misaligned. |
OK - I've tried to update the description to reflect the problem, although still not really sure I've got it right. In particular with message bubbles - if your first screenshot is with message bubbles then it looks like the image is in the centre of the bubble which seems reasonable? |
Yes, "incorrect metadata" probably fits best because it's likely still an issue when w and/or h are just plainly wrong instead of just swapped. |
Steps to reproduce
As of matrix-org/matrix-react-sdk@7b6536c#diff-265bce8083cb791022167e130a59ebba99e3e974d9d3120f953ed41461b0f22a (edit: this was also a problem before with
max-width
andmax-height
in the same line which led to cut images) there's a problem with some exif rotated images due to the aspect-ratio and some clients sending swapped out w/h which makes cssaspect-ratio
have swapped w/h:Some clients:
Other clients with swapped out w/h:
What happened?
What did you expect?
Right css
aspect-ratio
, at least after image has been loaded.The text was updated successfully, but these errors were encountered: