mirror of
https://github.com/facefusion/facefusion.git
synced 2026-11-26 11:43:45 +01:00
get_file_extension needs lower()
This commit is contained in:
1 parent
01fff3c419
commit
2f66bde116
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user