mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-05 19:23:45 +08:00
🚨修正绘图错误 close #25
This commit is contained in:
parent
8fd1216652
commit
c82ba74e56
@ -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,
|
||||
)
|
||||
|
||||
# 放属性列表
|
||||
|
Loading…
x
Reference in New Issue
Block a user