summaryrefslogtreecommitdiff
path: root/net-im/py-matrix-synapse/files
diff options
context:
space:
mode:
authorSascha Biberhofer <ports@skyforge.at>2023-07-19 09:39:14 +0800
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2023-07-20 15:01:30 +0800
commit25ae04fe067204bd26e3b114ce58763202b4f4a3 (patch)
treedb1e6d462ff900e9371903b13bcde43dee8ee030 /net-im/py-matrix-synapse/files
parentdatabases/pg_citus: update to 12.0.0 (diff)
net-im/py-matrix-synapse: Update to 1.87.0
PR: 272104 Co-authored-by: Li-Wen Hsu <lwhsu@FreeBSD.org>
Diffstat (limited to 'net-im/py-matrix-synapse/files')
-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.