Fix webp thumbnailing

This commit is contained in:
Tulir Asokan 2021-01-31 21:05:41 +02:00
parent c657c481d3
commit 311fe6378c
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class ThumbnailError(Exception):
class Thumbnailer:
FORMATS = {"image/jpeg": "JPEG", "image/png": "PNG"}
FORMATS = {"image/jpeg": "JPEG", "image/png": "PNG", "image/webp": "WEBP"}
def __init__(self, input_path: str):
try: