fix: snap plugin

This commit is contained in:
langhuihui
2025-04-02 16:19:03 +08:00
committed by dexter
parent 0914fb8da7
commit 4e46ecc8cd
7 changed files with 144 additions and 308 deletions

14
example/8080/snap.yaml Normal file
View File

@@ -0,0 +1,14 @@
snap:
watermark:
text: "" # 水印文字内容
fontpath: "" # 水印字体文件路径
fontcolor: "rgba(255,165,0,1)" # 水印字体颜色支持rgba格式
fontsize: 36 # 水印字体大小
offsetx: 0 # 水印位置X偏移
offsety: 0 # 水印位置Y偏移
timeinterval: 1s # 截图时间间隔默认1分钟
savepath: "snaps" # 截图保存路径
filter: ".*" # 截图流过滤器,支持正则表达式
iframeinterval: 3 # 间隔多少帧截图
mode: 0 # 截图模式0-时间间隔1-关键帧间隔 2-HTTP请求模式手动触发
querytimedelta: 3 # 查询截图时允许的最大时间差(秒)