add_border
Add customizable borders to images using width, color, style, and corner radius options. Supports various formats like PNG, JPEG, and WEBP for tailored image enhancements.
Instructions
为图片添加边框效果
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| border_color | No | 边框颜色,十六进制格式如 #000000(黑色) | #000000 |
| border_style | No | 边框样式:solid(实线)、dashed(虚线)、dotted(点线) | solid |
| border_width | No | 边框宽度(像素) | |
| corner_radius | No | 圆角半径(像素),0为直角 | |
| image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
| output_format | No | 输出格式:PNG、JPEG、WEBP 等 | PNG |
Input Schema (JSON Schema)
{
"properties": {
"border_color": {
"default": "#000000",
"description": "边框颜色,十六进制格式如 #000000(黑色)",
"title": "Border Color",
"type": "string"
},
"border_style": {
"default": "solid",
"description": "边框样式:solid(实线)、dashed(虚线)、dotted(点线)",
"title": "Border Style",
"type": "string"
},
"border_width": {
"default": 10,
"description": "边框宽度(像素)",
"minimum": 1,
"title": "Border Width",
"type": "integer"
},
"corner_radius": {
"default": 10,
"description": "圆角半径(像素),0为直角",
"minimum": 0,
"title": "Corner Radius",
"type": "integer"
},
"image_source": {
"description": "图片源,可以是文件路径或base64编码的图片数据",
"title": "Image Source",
"type": "string"
},
"output_format": {
"default": "PNG",
"description": "输出格式:PNG、JPEG、WEBP 等",
"title": "Output Format",
"type": "string"
}
},
"required": [
"image_source"
],
"title": "add_borderArguments",
"type": "object"
}