Omnibus commited on
Commit
7489cf4
·
1 Parent(s): 4b73176

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -2
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
- out = im.save("test","png",pnginfo=info)
13
- return(out,"")
 
 
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):