jpeg is not a format

This commit is contained in:
henryruhs
2025-01-13 13:26:48 +01:00
parent 169d578a14
commit 9d9805a03b
4 changed files with 4 additions and 2 deletions

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