add_shadow
Enhance images by adding customizable shadows. Specify color, offset, blur, opacity, and output format for realistic effects. Ideal for improving visual depth and dimension in graphics.
Instructions
为图片添加阴影效果
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
output_format | No | 输出格式:PNG、JPEG、WEBP 等 | PNG |
shadow_blur | No | 阴影模糊半径(像素) | |
shadow_color | No | 阴影颜色,十六进制格式如 #808080(灰色) | #808080 |
shadow_offset_x | No | 阴影水平偏移(像素),正值向右,负值向左 | |
shadow_offset_y | No | 阴影垂直偏移(像素),正值向下,负值向上 | |
shadow_opacity | No | 阴影不透明度,范围 0.0-1.0 |
Input Schema (JSON Schema)
{
"properties": {
"image_source": {
"description": "图片源,可以是文件路径或base64编码的图片数据",
"title": "Image Source",
"type": "string"
},
"output_format": {
"default": "PNG",
"description": "输出格式:PNG、JPEG、WEBP 等",
"title": "Output Format",
"type": "string"
},
"shadow_blur": {
"default": 5,
"description": "阴影模糊半径(像素)",
"minimum": 0,
"title": "Shadow Blur",
"type": "integer"
},
"shadow_color": {
"default": "#808080",
"description": "阴影颜色,十六进制格式如 #808080(灰色)",
"title": "Shadow Color",
"type": "string"
},
"shadow_offset_x": {
"default": 5,
"description": "阴影水平偏移(像素),正值向右,负值向左",
"title": "Shadow Offset X",
"type": "integer"
},
"shadow_offset_y": {
"default": 5,
"description": "阴影垂直偏移(像素),正值向下,负值向上",
"title": "Shadow Offset Y",
"type": "integer"
},
"shadow_opacity": {
"default": 0.5,
"description": "阴影不透明度,范围 0.0-1.0",
"maximum": 1,
"minimum": 0,
"title": "Shadow Opacity",
"type": "number"
}
},
"required": [
"image_source"
],
"title": "add_shadowArguments",
"type": "object"
}