Muthuraja18 commited on
Commit
6149efa
·
verified ·
1 Parent(s): a7d0752

Update tools/analyze.py

Browse files
Files changed (1) hide show
  1. 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
- return {
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