Crop image
crop_imageCrop an image to a specific pixel box or centered aspect ratio, then save in your preferred format and quality.
Instructions
Crop to a pixel box (left, top, width, height) or to a centered aspect ratio such as 1:1, 4:5 or 16:9.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| input | Yes | ||
| width | No | ||
| aspect | No | Centered crop to this ratio, e.g. 16:9. Overrides the pixel box. | |
| format | No | ||
| height | No | ||
| output | No | Output file path. Default: next to the input, with a suffix and the right extension. | |
| preview | No | Attach a small JPEG preview to the result (default true). | |
| quality | No | Lossy quality 1-100 (default 80). Ignored for png. | |
| background | No | CSS color used to flatten transparency when the output is jpeg (default #ffffff). |