Omnibus commited on
Commit
16326ee
·
1 Parent(s): e055d9e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
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("test.png","")
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):