ming 3 년 전
부모
커밋
1e02be1430
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -310,7 +310,7 @@ def txt2image(content, save_target):
     canvas.save(save_target, "PNG")
 
 def txt2image_title(content, save_target):
-    unicode_text = content
+    unicode_text = trim_punctuation(content)
     font = ImageFont.truetype("font.ttf", 25,encoding='big5')
     text_width, text_height = font.getsize(unicode_text)
     canvas = Image.new('RGBA', (500, 500), (255, 0, 0, 0) )