tos_image_process
Process images stored in TOS buckets by applying operations like resize, format conversion, crop, rotate, and quality adjustment with specified parameters.
Instructions
图片处理(组合操作,支持多种处理参数)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket_name | Yes | 存储桶名称 | |
object_key | Yes | 图片对象键名 | |
process | Yes | 图片处理参数。参数格式通常为 'image/操作,参数',如: 'image/resize,h_100' 或 'image/format,jpg'。常用操作包括:resize(缩放),format(格式转换),quality(质量),crop(裁剪),rotate(旋转)等。 | |
save_bucket | Yes | 保存的存储桶名称 | |
save_key | Yes | 保存的对象键名 |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"description": "存储桶名称",
"type": "string"
},
"object_key": {
"description": "图片对象键名",
"type": "string"
},
"process": {
"description": "图片处理参数。参数格式通常为 'image/操作,参数',如: 'image/resize,h_100' 或 'image/format,jpg'。常用操作包括:resize(缩放),format(格式转换),quality(质量),crop(裁剪),rotate(旋转)等。",
"type": "string"
},
"save_bucket": {
"description": "保存的存储桶名称",
"type": "string"
},
"save_key": {
"description": "保存的对象键名",
"type": "string"
}
},
"required": [
"bucket_name",
"object_key",
"process",
"save_bucket",
"save_key"
],
"type": "object"
}