Browse Source

Fix deprecated call to pil method

tags/v0.99.beta20^2^2
alxf 7 years ago
parent
commit
cc8481c50c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      python/examples/img2txt.py

+ 1
- 1
python/examples/img2txt.py View File

@@ -224,7 +224,7 @@ def main():
dit.set_charset(charset) dit.set_charset(charset)


#create dither #create dither
dit.bitmap(cv, 0, 0, width, height, img.tostring())
dit.bitmap(cv, 0, 0, width, height, str(img.tobytes()))


#print export to screen #print export to screen
sys.stdout.write("%s" % cv.export_to_memory(exformat)) sys.stdout.write("%s" % cv.export_to_memory(exformat))


Loading…
Cancel
Save