mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
commit
715338f821
@ -232,7 +232,7 @@ async def _(
|
||||
result += image(b64=pic2b64(img))
|
||||
if method in ["模糊效果", "6"]:
|
||||
for i in range(index):
|
||||
img = Image.open(TEMP_PATH / f"temp/{event.user_id}_{i}_update.png").filter(
|
||||
img = Image.open(TEMP_PATH / f"{event.user_id}_{i}_update.png").filter(
|
||||
ImageFilter.BLUR
|
||||
)
|
||||
result += image(b64=pic2b64(img))
|
||||
|
||||
@ -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