Update utils.py
Browse files
utils.py
CHANGED
|
@@ -9,8 +9,10 @@ def png_encode(im_name,extra):
|
|
| 9 |
|
| 10 |
info = PngImagePlugin.PngInfo()
|
| 11 |
info.add_text("TXT", extra)
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
def to_bin(data):
|
|
|
|
| 9 |
|
| 10 |
info = PngImagePlugin.PngInfo()
|
| 11 |
info.add_text("TXT", extra)
|
| 12 |
+
im.save("test.png",pnginfo=info)
|
| 13 |
+
test = Image.open("test.png")
|
| 14 |
+
print(test.text)
|
| 15 |
+
return("test.png","")
|
| 16 |
|
| 17 |
|
| 18 |
def to_bin(data):
|