crop_to_aspect
Crops an image to a specified width/height ratio while keeping the maximum possible area. Use common ratios like 1.0 for square, 4:3, 3:2, or 16:9.
Instructions
Crop to a target aspect ratio (width/height), keeping maximum area.
Use 1.0 for square, 1.3333 for 4:3, 1.5 for 3:2, 1.7778 for 16:9.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | Yes | ||
| anchor | No | center | |
| backend | No | ||
| quality | No | ||
| input_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |