From 1a68c82bcef094b8436e1b264670a0d4a48a7c0c Mon Sep 17 00:00:00 2001 From: guojianzhu Date: Thu, 25 Jul 2024 12:59:14 +0800 Subject: [PATCH] fix: support webp image --- src/utils/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helper.py b/src/utils/helper.py index 777bf09..bfa5818 100644 --- a/src/utils/helper.py +++ b/src/utils/helper.py @@ -45,7 +45,7 @@ def remove_suffix(filepath): def is_image(file_path): - image_extensions = ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff') + image_extensions = ('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.webp') return file_path.lower().endswith(image_extensions)