Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Request correct dimensions for image thumbnails #702

Closed
wants to merge 4 commits into from

Conversation

lukebarnard1
Copy link
Contributor

@lukebarnard1 lukebarnard1 commented Feb 16, 2017

With dynamic thumbnails enabled:

Before changes:
2017-02-16-104837_994x337_scrot

After changes:
2017-02-16-104233_1010x376_scrot

This is for when dynamic thumbnails are enabled on the home server, which will scale to exactly the dimensions provided. Synapse comments allude to clients specifying the correct width and height when requesting thumbnails.

Luke Barnard added 3 commits February 16, 2017 10:43
This is for when dynamic thumbnails are enabled on the home server, which will scale to exactly the dimensions provided.
@lukebarnard1 lukebarnard1 requested a review from dbkr February 16, 2017 10:57
@dbkr
Copy link
Member

dbkr commented Feb 16, 2017

So, I think it's synapse that's at fault here rather than riot: the bug is matrix-org/synapse#1677

The idea is that the media repo worries about maintaining aspect ratio when scaling the image so the client doesn't have to. The client is only able to do this in this case because the other end has told it what it thinks the dimensions are which is not a terribly reliable mechanism, so the width and height specified by the client are a bounding box rather than exact dimensions. In any case, I would say that synapse's behaviour WRT aspect scaling should be consistent whether or not it has dynamic thumbnailing turned on or not.

@lukebarnard1
Copy link
Contributor Author

This has been made redundant by matrix-org/synapse#1945

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants