图片旋转
image_rotateRotate an image by a specified clockwise angle using a local path or URL, and return the result as a base64 PNG with an optional save-to-file feature.
Instructions
旋转图片指定角度。
参数:
image: 图片路径或URL
angle: 旋转角度(正数为顺时针,如90/180/270/45等)
output_path: 可选,保存到文件路径
返回:旋转后的图片(base64 PNG)和元信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | Yes | 旋转角度(正数为顺时针) | |
| image | Yes | 图片路径或URL(http/https开头为URL,否则为本地路径) | |
| output_path | No | 可选:输出图片保存的文件路径。无论是否设置,图片都会以base64返回。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| size_bytes | Yes |