From 14a31592e5a7b970b70c617c56cbdc3a5bb2a5d3 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Sun, 2 Nov 2025 17:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=A7=86=E9=A2=91=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/schemas/video.py | 8 ++++---- pixelle_video/services/frame_html.py | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/api/schemas/video.py b/api/schemas/video.py index 39ad8e3..1b1759b 100644 --- a/api/schemas/video.py +++ b/api/schemas/video.py @@ -32,13 +32,13 @@ class VideoGenerateRequest(BaseModel): max_image_prompt_words: int = Field(60, ge=10, le=200, description="Max image prompt words") # === Image Parameters === - image_width: int = Field(1024, ge=512, le=2048, description="Image width") - image_height: int = Field(1024, ge=512, le=2048, description="Image height") + image_width: int = Field(1024, description="Image width") + image_height: int = Field(1024, description="Image height") image_workflow: Optional[str] = Field(None, description="Custom image workflow") # === Video Parameters === - video_width: int = Field(1080, ge=512, le=3840, description="Video width") - video_height: int = Field(1920, ge=512, le=3840, description="Video height") + video_width: int = Field(1080, description="Video width") + video_height: int = Field(1920, description="Video height") video_fps: int = Field(30, ge=15, le=60, description="Video FPS") # === Frame Template === diff --git a/pixelle_video/services/frame_html.py b/pixelle_video/services/frame_html.py index 3055424..b35e173 100644 --- a/pixelle_video/services/frame_html.py +++ b/pixelle_video/services/frame_html.py @@ -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