mirror of
https://github.com/KimigaiiWuyi/GenshinUID.git
synced 2025-05-31 04:30:29 +08:00
修复:遗漏的图片
This commit is contained in:
parent
70a2eee1c0
commit
46d672fc2c
@ -427,7 +427,9 @@ async def draw_char_card(raw_data: dict, charUrl: str = None) -> bytes:
|
||||
overlay = overlay.resize((new_overlay_w, new_overlay_h), Image.Resampling.LANCZOS)
|
||||
color_img = Image.new('RGBA', overlay.size, COLOR_MAP[raw_data['avatarElement']])
|
||||
img = ImageChops.overlay(color_img, overlay)
|
||||
|
||||
char_info_1 = Image.open(TEXT_PATH / 'char_info_1.png')
|
||||
char_info_mask = Image.open(TEXT_PATH / 'char_info_mask.png')
|
||||
|
||||
img_temp = Image.new('RGBA', (based_w, based_h), (0,0,0,0))
|
||||
img_temp.paste(char_img,(0,0),char_info_mask)
|
||||
img.paste(img_temp, (0, 0), img_temp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user