🚨修正绘图错误 close #25

This commit is contained in:
qwerdvd 2023-05-16 16:47:24 +08:00
parent 8fd1216652
commit c82ba74e56

View File

@ -83,8 +83,10 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
# 放角色立绘
char_info = bg_img.copy()
char_img = Image.open(CHAR_PORTRAIT_PATH / f'{char.char_id}.png').resize(
(1050, 1050)
char_img = (
Image.open(CHAR_PORTRAIT_PATH / f'{char.char_id}.png')
.resize((1050, 1050))
.convert('RGBA')
)
char_info.paste(char_img, (-220, -130), char_img)
@ -129,7 +131,6 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
white_color,
sr_font_28,
'rm',
stroke_width=1,
)
# 放属性列表