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