Temporarily disable webp thumbnailing

matrix-org-hotfixes
Erik Johnston 2023-09-15 15:45:41 +01:00
parent 1e0b96f1a4
commit 93248076c2
1 changed files with 1 additions and 1 deletions

View File

@ -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.