rotate_image
Rotate images by a specified angle, clockwise or counterclockwise, with options to expand the canvas or crop and define background fill color. Part of the Image Processing MCP Server.
Instructions
旋转图片
Input Schema
Name | Required | Description | Default |
---|---|---|---|
angle | Yes | 旋转角度(度),正值为顺时针,负值为逆时针 | |
expand | No | 是否扩展画布以容纳旋转后的图片,False会裁剪 | |
fill_color | No | 填充颜色,十六进制格式如 #FFFFFF(白色) | #FFFFFF |
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 |
Input Schema (JSON Schema)
{
"properties": {
"angle": {
"description": "旋转角度(度),正值为顺时针,负值为逆时针",
"title": "Angle",
"type": "number"
},
"expand": {
"default": true,
"description": "是否扩展画布以容纳旋转后的图片,False会裁剪",
"title": "Expand",
"type": "boolean"
},
"fill_color": {
"default": "#FFFFFF",
"description": "填充颜色,十六进制格式如 #FFFFFF(白色)",
"title": "Fill Color",
"type": "string"
},
"image_source": {
"description": "图片源,可以是文件路径或base64编码的图片数据",
"title": "Image Source",
"type": "string"
}
},
"required": [
"image_source",
"angle"
],
"title": "rotate_imageArguments",
"type": "object"
}