diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 343de3d3..21471762 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -402,7 +402,8 @@ class MatrixClient(nio.AsyncClient): if small and is_jpg_png and not opaque_png: raise UneededThumbnail() - thumb.thumbnail((512, 512)) + if not small: + thumb.thumbnail((512, 512)) with io.BytesIO() as out: if thumb.mode == "RGBA":