mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
Update white2black_image.py
随着7b836ac 对utils/image_utils.py 的改动 调整此插件对于 utils/image_utils.py改动的引用部分
This commit is contained in:
parent
363acf37bc
commit
e764cfcc1c
@ -61,7 +61,7 @@ async def _(event: MessageEvent, arg: Message = CommandArg()):
|
||||
msg_sp = msg.split("<|>")
|
||||
w, h = w2b.size
|
||||
add_h, font_size = init_h_font_size(h)
|
||||
bg = BuildImage(w, h + add_h, color="black", font_size=font_size)
|
||||
bg = BuildImage(w, h + add_h, color="black", font_size=int(font_size))
|
||||
bg.paste(w2b)
|
||||
chinese_msg = formalization_msg(msg)
|
||||
if not bg.check_font_size(chinese_msg):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user