jpeg is not a format

This commit is contained in:
henryruhs
2025-04-28 10:03:24 +02:00
parent 169d578a14
commit 9d9805a03b
4 changed files with 4 additions and 2 deletions
+2
View File
@@ -32,6 +32,8 @@ def get_file_format(file_path : str) -> Optional[str]:
file_extension = get_file_extension(file_path)
if file_extension:
if file_extension == '.jpeg':
return 'jpg'
return file_extension.lower().lstrip('.')
return None