This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Large thumbnails undershoot the requested size #5302
Labels
A-Media-Repository
Uploading, downloading images and video, thumbnailing
A-Spec-Compliance
places where synapse does not conform to the spec
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
If you request a larger thumbnail size than the largest precalculated thumbnail, you'll get the largest precalculated thumbnail, which could significantly undershoot the requested size.
This will end up looking horrible and blurry as the client then scales up the thumbnail to the size it asked for.
In Riot/Web (as of matrix-org/matrix-react-sdk#2439) we explicitly ask for the original image if the thumbnail exceeds 800x600, but we might do better to handle this more intelligently. Perhaps the solution is just to pregenerate even bigger thumbnails? Or default to serving the original image?
The text was updated successfully, but these errors were encountered: