Crop, scale, rotate
transformApply crop, scale, rotate, and flip to videos in a single pass, composing all operations into one filter chain to avoid multiple re-encodes.
Instructions
Apply geometric transforms — crop, scale, rotate, flip — in one pass.
Operations compose into a single filter chain in the order crop, scale, pad, rotate, flip, so the whole change costs one re-encode. Give only one of scale_width/scale_height to preserve the aspect ratio; give both with pad_to_fit to letterbox rather than stretch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Crop rectangle as 'x,y,width,height' in pixels, applied first. | |
| encode | No | ||
| rotate | No | Clockwise rotation; must be 0, 90, 180 or 270. | |
| input_path | Yes | Path to the source media file. | |
| pad_to_fit | No | When both scale dimensions are given, letterbox instead of stretching. | |
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. | |
| scale_width | No | ||
| scale_height | No | ||
| flip_vertical | No | ||
| flip_horizontal | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |