Add tiff image format

This commit is contained in:
henryruhs
2025-01-15 15:41:54 +01:00
parent faf5020051
commit e5278996d1
3 changed files with 6 additions and 3 deletions

View File

@@ -34,6 +34,8 @@ def get_file_format(file_path : str) -> Optional[str]:
if file_extension:
if file_extension == '.jpg':
return 'jpeg'
if file_extension == 'tif':
return 'tiff'
return file_extension.lower().lstrip('.')
return None