save_image
Saves images to a specified path by accepting file paths or base64-encoded data. Supports multiple formats like PNG, JPEG, WEBP, BMP, and TIFF, with adjustable quality for JPEG output.
Instructions
保存图片到指定路径
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | 图片格式,支持 PNG、JPEG、WEBP、BMP、TIFF 等 | PNG |
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
output_path | Yes | 输出文件路径,包含文件名和扩展名(如 'output.png') | |
quality | No | 图片质量,范围 1-100,仅对 JPEG 格式有效 |