From afc90fa1c0647677625a5e8f277097d5d9945cbf Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 26 Jun 2022 16:26:20 +0800 Subject: [PATCH] =?UTF-8?q?eat=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eat.py | 4 ++-- list.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eat.py b/eat.py index 9bdbece..e677e15 100644 --- a/eat.py +++ b/eat.py @@ -82,7 +82,7 @@ async def eat_it(context, uid, base, mask, photo, number, layer=0): ) try: markImg = Image.open("plugins/eat/" + str(uid) + ".jpg") - maskImg = Image.open("plugins/eat/mask" + str(numberPosition[2]) + ".png") + maskImg = Image.open("plugins/eat/mask" + str(numberPosition[2]) + ".png").convert("RGBA") except: await context.edit(f"图片模版加载出错,请检查并更新配置:mask{str(numberPosition[2])}.png") return base @@ -438,7 +438,7 @@ async def eat(context: NewMessage.Event): markImg = Image.open("plugins/eat/" + str(target_user_id) + ".jpg") try: eatImg = Image.open("plugins/eat/eat" + str(number) + ".png") - maskImg = Image.open("plugins/eat/mask" + str(number) + ".png") + maskImg = Image.open("plugins/eat/mask" + str(number) + ".png").convert("RGBA") except: await context.edit(f"图片模版加载出错,请检查并更新配置:{str(number)}") return diff --git a/list.json b/list.json index bcd79bb..c3e294e 100644 --- a/list.json +++ b/list.json @@ -192,7 +192,7 @@ }, { "name": "eat", - "version": "1.044", + "version": "1.045", "section": "profile", "maintainer": "SF_PICK", "size": "22.3 kb",