crop_image
Extract and save a specific region of an image by defining pixel-based coordinates and dimensions for precise cropping.
Instructions
Crop an image to specified region
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | Yes | Height of crop area | |
inputPath | Yes | Path to input image | |
left | Yes | Left offset in pixels | |
outputPath | Yes | Path to save cropped image | |
top | Yes | Top offset in pixels | |
width | Yes | Width of crop area |
Input Schema (JSON Schema)
{
"properties": {
"height": {
"description": "Height of crop area",
"type": "number"
},
"inputPath": {
"description": "Path to input image",
"type": "string"
},
"left": {
"description": "Left offset in pixels",
"type": "number"
},
"outputPath": {
"description": "Path to save cropped image",
"type": "string"
},
"top": {
"description": "Top offset in pixels",
"type": "number"
},
"width": {
"description": "Width of crop area",
"type": "number"
}
},
"required": [
"inputPath",
"outputPath",
"left",
"top",
"width",
"height"
],
"type": "object"
}