summaryrefslogtreecommitdiff
path: root/net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py')
-rw-r--r--net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py b/net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py
new file mode 100644
index 000000000000..64fb9363aad5
--- /dev/null
+++ b/net-im/py-matrix-synapse/files/patch-synapse_media_thumbnailer.py
@@ -0,0 +1,11 @@
+--- 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.