crop_image
Crop images to specific dimensions by defining left, top, right, and bottom pixel boundaries. Ideal for precise image editing or extracting sections from a larger image source.
Instructions
裁剪图片
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bottom | Yes | 裁剪区域下边界坐标(像素) | |
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
left | Yes | 裁剪区域左边界坐标(像素) | |
right | Yes | 裁剪区域右边界坐标(像素) | |
top | Yes | 裁剪区域上边界坐标(像素) |
Input Schema (JSON Schema)
{
"properties": {
"bottom": {
"description": "裁剪区域下边界坐标(像素)",
"exclusiveMinimum": 0,
"title": "Bottom",
"type": "integer"
},
"image_source": {
"description": "图片源,可以是文件路径或base64编码的图片数据",
"title": "Image Source",
"type": "string"
},
"left": {
"description": "裁剪区域左边界坐标(像素)",
"minimum": 0,
"title": "Left",
"type": "integer"
},
"right": {
"description": "裁剪区域右边界坐标(像素)",
"exclusiveMinimum": 0,
"title": "Right",
"type": "integer"
},
"top": {
"description": "裁剪区域上边界坐标(像素)",
"minimum": 0,
"title": "Top",
"type": "integer"
}
},
"required": [
"image_source",
"left",
"top",
"right",
"bottom"
],
"title": "crop_imageArguments",
"type": "object"
}