From c63077eab12faf5d8dbc5794c8c86181a68c86f3 Mon Sep 17 00:00:00 2001 From: atychyna Date: Fri, 1 Mar 2024 14:53:07 -0400 Subject: [PATCH] Update formats in engine.py libvips uses target with dots so change few existing formats to conform to that. --- thumbor_vips_engine/engine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thumbor_vips_engine/engine.py b/thumbor_vips_engine/engine.py index 152fe3c..b116813 100644 --- a/thumbor_vips_engine/engine.py +++ b/thumbor_vips_engine/engine.py @@ -16,12 +16,12 @@ from thumbor.point import FocalPoint FORMATS = { - ".tif": "PNG", # serve tif as png + ".tif": ".PNG", # serve tif as png ".jpg": ".JPEG", ".jpeg": ".JPEG", - ".gif": "GIF", - ".png": "PNG", - ".webp": "WEBP", + ".gif": ".GIF", + ".png": ".PNG", + ".webp": ".WEBP", }