Crop an image
image_cropCall this tool to cut a rectangle out of an image. x, y are the top-left corner in pixels from the image's top-left. A rectangle past an edge is refused with the image's real size, not clamped. Free: sources up to 4 MP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge of the crop, in pixels from the left of the image | |
| y | Yes | Top edge of the crop, in pixels from the top of the image | |
| path | Yes | Name of an image uploaded with image_upload, or one this server wrote earlier | |
| width | Yes | Width of the crop in pixels | |
| height | Yes | Height of the crop in pixels | |
| out_path | Yes | Name for the file to write; it comes back as a download link valid for one hour. The extension decides the output format; without a known one the input's format is kept | |
| overwrite | No | Replace out_path if it already exists. Default false. Never allows an output to be one of the inputs |