更改视频尺寸逻辑

This commit is contained in:
puke
2025-11-02 17:14:51 +08:00
parent 8a8139e65c
commit 14a31592e5
2 changed files with 5 additions and 6 deletions

View File

@@ -274,8 +274,7 @@ class HTMLFrameGenerator:
try:
self.hti.screenshot(
html_str=html,
save_as=output_filename,
size=(width, height)
save_as=output_filename
)
# html2image saves to current directory by default, move to target directory