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