mirror of
https://github.com/KwaiVGI/LivePortrait.git
synced 2024-12-22 12:22:38 +00:00
fix: support webp image
This commit is contained in:
parent
73ddb69d38
commit
1a68c82bce
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user