From 93248076c2a0eecc631a7ce7503f3d5e773e224c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 15 Sep 2023 15:45:41 +0100 Subject: [PATCH] Temporarily disable webp thumbnailing --- synapse/media/thumbnailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/media/thumbnailer.py b/synapse/media/thumbnailer.py index d8979813b3..359b3233ef 100644 --- a/synapse/media/thumbnailer.py +++ b/synapse/media/thumbnailer.py @@ -51,7 +51,7 @@ class Thumbnailer: self._closed = False try: - self.image = Image.open(input_path) + self.image = Image.open(input_path, formats=["jpeg", "gif", "png"]) except OSError as e: # If an error occurs opening the image, a thumbnail won't be able to # be generated.