|
@@ -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)
|