resize_image
Resize images to specified dimensions on the Image Processing MCP Server. Adjust width, height, and aspect ratio while choosing from various resampling algorithms for optimal results.
Instructions
调整图片大小
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | Yes | 目标高度(像素) | |
image_source | Yes | 图片源,可以是文件路径或base64编码的图片数据 | |
keep_aspect_ratio | No | 是否保持宽高比,True时会按比例缩放 | |
resample | No | 重采样算法:LANCZOS(高质量)、BILINEAR(平滑)、NEAREST(快速) | LANCZOS |
width | Yes | 目标宽度(像素) |