diff --git a/plugins/update_picture.py b/plugins/update_picture.py index 8433b7e2..f758e546 100755 --- a/plugins/update_picture.py +++ b/plugins/update_picture.py @@ -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)) diff --git a/plugins/white2black_image.py b/plugins/white2black_image.py index e9643f4c..730740c7 100755 --- a/plugins/white2black_image.py +++ b/plugins/white2black_image.py @@ -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):