Never upscale images when thumbnailing
This commit is contained in:
parent
412a86762e
commit
48bcc91582
|
@ -402,6 +402,7 @@ class MatrixClient(nio.AsyncClient):
|
|||
if small and is_jpg_png and not opaque_png:
|
||||
raise UneededThumbnail()
|
||||
|
||||
if not small:
|
||||
thumb.thumbnail((512, 512))
|
||||
|
||||
with io.BytesIO() as out:
|
||||
|
|
Loading…
Reference in New Issue
Block a user