This commit is contained in:
shenjack 2024-06-29 01:35:44 +08:00
parent 127f0f0ab4
commit 18df7d1a89
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -36,7 +36,7 @@ def local_env_info() -> str:
return cache.getvalue() return cache.getvalue()
def local_env_image() -> bytes: def local_env_image() -> bytes:
img = Image.new("RGB", (800, 120), (255, 255, 255)) img = Image.new("RGB", (800, 140), (255, 255, 255))
# 往图片上写入一些信息 # 往图片上写入一些信息
draw = ImageDraw.Draw(img) draw = ImageDraw.Draw(img)
font = ImageFont.truetype("./SMILEYSANS-OBLIQUE.TTF", size=25) font = ImageFont.truetype("./SMILEYSANS-OBLIQUE.TTF", size=25)