图片镜像
image_flipFlip an image horizontally or vertically. Provide an image path or URL and choose the direction to receive the flipped image as a base64 PNG.
Instructions
对图片进行水平或垂直镜像翻转。
参数:
image: 图片路径或URL
direction: 翻转方向(horizontal=水平镜像/左右翻转,vertical=垂直镜像/上下翻转)
output_path: 可选,保存到文件路径
返回:翻转后的图片(base64 PNG)和元信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | 图片路径或URL(http/https开头为URL,否则为本地路径) | |
| direction | Yes | 翻转方向:horizontal=左右翻转,vertical=上下翻转 | |
| output_path | No | 可选:输出图片保存的文件路径。无论是否设置,图片都会以base64返回。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| size_bytes | Yes |