fix: support webp image

This commit is contained in:
guojianzhu 2024-07-25 12:59:14 +08:00
parent 73ddb69d38
commit 1a68c82bce

View File

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