This commit is contained in:
quqiOnfree 2025-09-02 23:02:37 +08:00
parent f19a354c5d
commit e89c0ae147

View file

@ -91,7 +91,7 @@ def create_image(background: bytes,
small_image = Image.open(BytesIO(icon)).resize((small_size, small_size), small_image = Image.open(BytesIO(icon)).resize((small_size, small_size),
Image.Resampling.LANCZOS) Image.Resampling.LANCZOS)
image.paste(small_image, (int(width / 2.6 - small_size / 2), int(height / 2 - small_size / 2))) image.paste(small_image, (int(width / 2.6 - small_size), int(height / 2 - small_size / 2)))
# 设置字体 # 设置字体
if font_url == None: if font_url == None: