-
-
Notifications
You must be signed in to change notification settings - Fork 829
MImageBody thumbnail use thumbnail_info for max w and h #4718
Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm code-wise, though iirc the 1.0 redesign wanted images that grew with the timeline width. The blurry artifacts might have been an unintended side effect of this as after a point we might have been meant to use the raw image instead of trying to thumbnail to 1080p?
we always show thumbnails unless the user is on a HiDPI display. I am on a 5220 x 1440 display which is not hidpi but 4 times the width needed to see blurring in the image in the issue. @matrix-org/design what do we want to do here:
|
Definite no go, as the varying widths on the timeline would feel terrible.
Why don't we show the thumbnail to begin with for the best bandwidth and swap it out for the full size one if the user loads it? |
We do this, and it causes blurring due to stretching in the thumbnail. See element-hq/element-web#13918 |
I'm suggesting we swap out the thumbnail in the timeline once the user loads/views it— is that what we do? I assume not from the linked issue, but if we do already and users are confused we could look at exposing this better through the hover state. |
No, we do not, but the complaint was about it ever getting stretched to the point it'd be blurry |
Yup, my thinking though is:
I've used other platforms that do this and it's a pretty pragmatic solution, so that'd be my preferred one if we're actioning this now. |
Why don't we just |
Fixes #1520 |
Fixes element-hq/element-web#13918
If the image was really wide such that it'd hit the Synapse limit of 800px wide but wasn't tall enough to hit our
maxImageHeight
of 600 then it'd get stretched horizontally causing blur.Before:
After:
(shows both encrypted and unencrypted [relying on server thumbs])