Skip to main content
Glama

Image Processing MCP Server

by duke0317

batch_resize

Resize multiple images simultaneously to specified dimensions while optionally maintaining aspect ratio and selecting output format using the Image Processing MCP Server.

Instructions

批量调整图片大小

Input Schema

NameRequiredDescriptionDefault
image_sourcesYes图片源列表,每个元素可以是文件路径或base64编码的图片数据
keep_aspect_ratioNo是否保持宽高比
output_formatNo输出格式:PNG、JPEG、WEBP 等PNG
target_heightYes目标高度(像素)
target_widthYes目标宽度(像素)

Input Schema (JSON Schema)

{ "properties": { "image_sources": { "description": "图片源列表,每个元素可以是文件路径或base64编码的图片数据", "items": {}, "title": "Image Sources", "type": "array" }, "keep_aspect_ratio": { "default": true, "description": "是否保持宽高比", "title": "Keep Aspect Ratio", "type": "boolean" }, "output_format": { "default": "PNG", "description": "输出格式:PNG、JPEG、WEBP 等", "title": "Output Format", "type": "string" }, "target_height": { "description": "目标高度(像素)", "minimum": 1, "title": "Target Height", "type": "integer" }, "target_width": { "description": "目标宽度(像素)", "minimum": 1, "title": "Target Width", "type": "integer" } }, "required": [ "image_sources", "target_width", "target_height" ], "title": "batch_resizeArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/duke0317/ps-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server