smart_crop_vertical
Convert horizontal 16:9 videos into 9:16 vertical Shorts, Reels, or TikTok clips using blurred padding, center cropping, or black-bar fitting.
Instructions
Transform horizontal 16:9 video into 9:16 vertical Shorts, Reels, or TikTok format.
Args: input_path: Full file path to the source video. output_path: Optional output path. Defaults to '{name}vertical{mode}.{ext}'. mode: Framing method: - 'blur_pad': (Default) Blurred video background with centered sharp original. - 'center_crop': Direct 9:16 crop from the center. - 'fit_black_bars': Scale to fit with black letterbox padding. target_width: Canvas width (default: 1080). target_height: Canvas height (default: 1920).
Returns: JSON string with framing details, target resolution, and output file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | blur_pad | |
| input_path | Yes | ||
| output_path | No | ||
| target_width | No | ||
| target_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |