Detect image type instead of requesting it from user

This commit is contained in:
grossmj committed 2022-03-20 16:20:17 +10:00
1 parent 2a5a4b5f77
commit 9b39bfb845
5 files changed
+50 -47

No files matched your search

+2 -1
View File
@@ -32,7 +32,8 @@ class ImageBase(BaseModel):
Common image properties.
"""
filename: str = Field(..., description="Image name")
filename: str = Field(..., description="Image filename")
path: str = Field(..., description="Image path")
image_type: ImageType = Field(..., description="Image type")
image_size: int = Field(..., description="Image size in bytes")
checksum: str = Field(..., description="Checksum value")