ports/net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py
Sascha Biberhofer 25ae04fe06
net-im/py-matrix-synapse: Update to 1.87.0
PR:		272104
Co-authored-by:	Li-Wen Hsu <lwhsu@FreeBSD.org>
2023-07-20 15:01:30 +08:00

11 lines
516 B
Python

--- synapse/media/thumbnailer.py.orig 2023-07-11 08:10:15 UTC
+++ synapse/media/thumbnailer.py
@@ -131,7 +131,7 @@ class Thumbnailer:
else:
with self.image:
self.image = self.image.convert("RGB")
- return self.image.resize((width, height), Image.ANTIALIAS)
+ return self.image.resize((width, height), Image.LANCZOS)
def scale(self, width: int, height: int, output_type: str) -> BytesIO:
"""Rescales the image to the given dimensions.