batch_resize
Resize multiple images to specified dimensions in bulk using target width and height. Maintain aspect ratio and choose output formats like PNG, JPEG, or WEBP for streamlined image processing.
Instructions
批量调整图片大小
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_sources | Yes | 图片源列表,每个元素可以是文件路径或base64编码的图片数据 | |
keep_aspect_ratio | No | 是否保持宽高比 | |
output_format | No | 输出格式:PNG、JPEG、WEBP 等 | PNG |
target_height | Yes | 目标高度(像素) | |
target_width | Yes | 目标宽度(像素) |