From 2f66bde116c6cb1955fa91b0eebce679d37fc8c0 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 17 Jan 2025 22:38:01 +0100 Subject: [PATCH] get_file_extension needs lower() --- facefusion/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facefusion/filesystem.py b/facefusion/filesystem.py index aacdba2..2d452ed 100644 --- a/facefusion/filesystem.py +++ b/facefusion/filesystem.py @@ -24,7 +24,7 @@ def get_file_extension(file_path : str) -> Optional[str]: _, file_extension = os.path.splitext(file_path) if file_extension: - return file_extension + return file_extension.lower() return None @@ -36,7 +36,7 @@ def get_file_format(file_path : str) -> Optional[str]: return 'jpeg' if file_extension == 'tif': return 'tiff' - return file_extension.lower().lstrip('.') + return file_extension.lstrip('.') return None