ming 3 năm trước cách đây
mục cha
commit
f20b4aaaf6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -305,7 +305,7 @@ def txt2image(content, save_target):
     text_width, text_height = font.getsize(unicode_text)
     canvas = Image.new('RGBA', (500, 500), (255, 0, 0, 0) )
     draw = ImageDraw.Draw(canvas)
-    text= content
+    text= unicode_text
     draw.text((5,5), text, (255, 255, 255), font)
     canvas.save(save_target, "PNG")