配置模板截图视口参数并输出生效值日志

This commit is contained in:
liuwei
2026-04-23 11:40:11 +08:00
parent f7e1cf497a
commit 60b372cd88
2 changed files with 15 additions and 0 deletions

View File

@@ -18,3 +18,11 @@ image_format = "png"
summary_image_mode = "template"
# 总结卡片模板路径(相对项目根目录)
summary_image_template_path = "plugins/message_summary/templates/gemini_summary_card.html"
# 模板模式截图视口配置(仅 template 模式生效)
# 说明:
# 1. 这里可以覆盖 md2image 默认 780 宽;
# 2. 模板卡片宽度约 420截图建议 460~520 区间;
# 3. scale 提高后字体与线条会更清晰。
template_viewport_width = 500
template_viewport_height = 960
template_device_scale_factor = 2.0