feat: 优化了排版和渲染

This commit is contained in:
2024-04-03 01:03:25 +08:00
parent 14fb96fec2
commit 955d9f6d62
19 changed files with 121 additions and 72 deletions

View File

@ -127,7 +127,8 @@ async def _(bot: T_Bot, event: T_MessageEvent):
image_bytes = await template2image(
template=get_path("templates/stats.html", abs_path=True),
templates=templ,
scale_factor=4,
scale_factor=1,
debug=True
)
# await md.send_image(image_bytes, bot, event=event)
await stats.finish(MessageSegment.image(image_bytes))