create_silhouette
Generate silhouette effects from images by converting them into defined shapes with customizable silhouette and background colors, enhancing visual distinction for creative or analytical purposes.
Instructions
创建图片的剪影效果
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background_color | No | 背景颜色,十六进制格式或 'transparent'(透明) | transparent |
| image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
| output_format | No | 输出格式:PNG、JPEG、WEBP 等 | PNG |
| silhouette_color | No | 剪影颜色,十六进制格式如 #000000(黑色) | #000000 |
| threshold | No | 阈值,范围 0-255,用于确定剪影边界 |
Input Schema (JSON Schema)
{
"properties": {
"background_color": {
"default": "transparent",
"description": "背景颜色,十六进制格式或 'transparent'(透明)",
"title": "Background Color",
"type": "string"
},
"image_source": {
"description": "图片源,可以是文件路径或base64编码的图片数据",
"title": "Image Source",
"type": "string"
},
"output_format": {
"default": "PNG",
"description": "输出格式:PNG、JPEG、WEBP 等",
"title": "Output Format",
"type": "string"
},
"silhouette_color": {
"default": "#000000",
"description": "剪影颜色,十六进制格式如 #000000(黑色)",
"title": "Silhouette Color",
"type": "string"
},
"threshold": {
"default": 128,
"description": "阈值,范围 0-255,用于确定剪影边界",
"maximum": 255,
"minimum": 0,
"title": "Threshold",
"type": "integer"
}
},
"required": [
"image_source"
],
"title": "create_silhouetteArguments",
"type": "object"
}