From a9023d6f3a3e65b0a0767fa61c4c8ea547602e45 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:10:32 +0000 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81markdown=E6=B8=B2?= =?UTF-8?q?=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/general_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/general_utils.py b/util/general_utils.py index a0de7713a..279886a83 100644 --- a/util/general_utils.py +++ b/util/general_utils.py @@ -249,7 +249,7 @@ def render_markdown(markdown_text, image_width=800, image_height=600, font_size= markdown_text = '\n'.join(pre_lines) print("Pre process done, height: ", height) image_height = height - + image_width += 10 # 创建空白图像 image = Image.new('RGB', (image_width, image_height), bg_color)