Add tiff image format
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user