Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
3cc0311
1
Parent(s):
cbde269
minor
Browse files- pnginfo.py +2 -1
pnginfo.py
CHANGED
@@ -128,9 +128,10 @@ def read_stealth_info(image):
|
|
128 |
else:
|
129 |
decoded_data = byte_data.decode('utf-8', errors='ignore')
|
130 |
geninfo = decoded_data
|
|
|
131 |
except:
|
132 |
pass
|
133 |
-
return
|
134 |
|
135 |
def read_info_from_image(image):
|
136 |
if image is None:
|
|
|
128 |
else:
|
129 |
decoded_data = byte_data.decode('utf-8', errors='ignore')
|
130 |
geninfo = decoded_data
|
131 |
+
return json.loads(geninfo)
|
132 |
except:
|
133 |
pass
|
134 |
+
return {}
|
135 |
|
136 |
def read_info_from_image(image):
|
137 |
if image is None:
|