ming 3 lat temu
rodzic
commit
be832347f3
1 zmienionych plików z 1 dodań i 1 usunięć
  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)