From 2908a001baa8577d15fd22c35cfad7f3d1e084c4 Mon Sep 17 00:00:00 2001 From: xiangyuanmeng Date: Thu, 19 Sep 2024 22:03:39 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E5=A2=9E=E5=8A=A0=E4=BA=86ICON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comfyui_pil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfyui_pil.py b/comfyui_pil.py index 4fdc059..824d987 100644 --- a/comfyui_pil.py +++ b/comfyui_pil.py @@ -384,7 +384,7 @@ def mexx_image_filter(img, image_filter, text_width = bbox[2] - bbox[0] text_height = bbox[3] - bbox[1] text_x = (img_width - text_width) / 2 - text_y = (text_height - padding_height) / 8 + text_y = (padding_height - text_height) / 2 # 在留白区域写上文字 draw.text((text_x, text_y), text, fill=text_color, font=font) @@ -445,7 +445,7 @@ class PilTitle: return {'required': {'image': ('IMAGE', {'default': None}), "image_filter": (list, {"default": "NO"}), "padding_height": ("INT", {"default": 100}), - "font_size": ("INT", {"default": 80}), + "font_size": ("INT", {"default": 60}), "font_name": (font_names, {"default": "YangRenDongZhuShiTi-Light-2.ttf"}), "write_text": ("STRING", {"default": "画画的Baby", "multiline": True}), }}