This commit is contained in:
quqiOnfree 2025-09-02 23:28:01 +08:00
parent 1528211538
commit 81801de266

View file

@ -92,7 +92,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), 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: if font_url == None: