Spaces:
Sleeping
Sleeping
Update tools/analyze.py
Browse files- tools/analyze.py +6 -3
tools/analyze.py
CHANGED
|
@@ -5,9 +5,12 @@ def analyze_image(image_path: str):
|
|
| 5 |
|
| 6 |
img = Image.open(image_path)
|
| 7 |
|
| 8 |
-
|
| 9 |
"width": img.width,
|
| 10 |
"height": img.height,
|
| 11 |
"mode": img.mode,
|
| 12 |
-
"format": img.format
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
img = Image.open(image_path)
|
| 7 |
|
| 8 |
+
analysis = {
|
| 9 |
"width": img.width,
|
| 10 |
"height": img.height,
|
| 11 |
"mode": img.mode,
|
| 12 |
+
"format": img.format,
|
| 13 |
+
"summary": "Image loaded successfully"
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
return analysis
|