ming %!s(int64=3) %!d(string=hai) anos
pai
achega
be832347f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -303,7 +303,7 @@ def txt2image(content, save_target):
     unicode_text = trim_punctuation(content)
     font = ImageFont.truetype(font="msjh.ttf", size=30)
     text_width, text_height = font.getsize(unicode_text)
-    canvas = Image.new('RGBA', (1400, 500), (255, 0, 0, 0) )
+    canvas = Image.new('RGBA', (600, 500), (255, 0, 0, 0) )
     draw = ImageDraw.Draw(canvas)
     text= unicode_text
     draw.text((5,5), text, (255, 255, 0), font)