crop_to_rect
Crops an image canvas to a specified rectangle using x, y, width, and height coordinates. Use it to trim canvas edges or isolate a defined region in GIMP.
Instructions
Crop the image canvas to an explicit rectangle.
Parameters:
x, y: Top-left corner of the crop rectangle
width, height: Dimensions of the crop rectangle
image_index: Target image index (default 0)
Returns: {status, x, y, width, height}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| image_index | No |