mirror of
https://github.com/Murasame-Dev/McStatus-Img.git
synced 2025-12-16 05:07:57 +00:00
trim
This commit is contained in:
parent
1528211538
commit
81801de266
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ def create_image(background: bytes,
|
|||
small_image = Image.open(BytesIO(icon)).resize((small_size, small_size),
|
||||
Image.Resampling.LANCZOS)
|
||||
|
||||
image.paste(small_image, (int(width / 2.6 - small_size), int(height / 2 - small_size / 2)))
|
||||
image.paste(small_image, (int(width / 3 - small_size), int(height / 2 - small_size / 2)))
|
||||
|
||||
# 设置字体
|
||||
if font_url == None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue