feat(图片管理): 添加图片尺寸配置支持

在 config.toml 中新增 image_manager 配置块,包含图片高度和宽度设置
修改 ImageManager 类以使用配置中的尺寸,替代硬编码值
添加 ImageManagerModel 配置模型并集成到全局配置中
This commit is contained in:
2026-02-28 16:17:20 +08:00
parent 58a0c717e3
commit 0bca97424b
5 changed files with 27 additions and 4 deletions

View File

@@ -47,3 +47,9 @@ ca_cert_path = "ca/ca.pem"
client_cert_path = "ca/cert.pem"
# 客户端密钥路径(可选)
client_key_path = "ca/key.pem"
[image_manager]
# 图片高度
image_height = 1920
# 图片宽度
image_width = 1080