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 |