Skip to main content
Glama

Image Processing MCP Server

by duke0317

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

NameRequiredDescriptionDefault
heightYes目标高度(像素)
image_sourceYes图片源,可以是文件路径或base64编码的图片数据
keep_aspect_ratioNo是否保持宽高比,True时会按比例缩放
resampleNo重采样算法:LANCZOS(高质量)、BILINEAR(平滑)、NEAREST(快速)LANCZOS
widthYes目标宽度(像素)

Input Schema (JSON Schema)

{ "properties": { "height": { "description": "目标高度(像素)", "exclusiveMinimum": 0, "title": "Height", "type": "integer" }, "image_source": { "description": "图片源,可以是文件路径或base64编码的图片数据", "title": "Image Source", "type": "string" }, "keep_aspect_ratio": { "default": true, "description": "是否保持宽高比,True时会按比例缩放", "title": "Keep Aspect Ratio", "type": "boolean" }, "resample": { "default": "LANCZOS", "description": "重采样算法:LANCZOS(高质量)、BILINEAR(平滑)、NEAREST(快速)", "title": "Resample", "type": "string" }, "width": { "description": "目标宽度(像素)", "exclusiveMinimum": 0, "title": "Width", "type": "integer" } }, "required": [ "image_source", "width", "height" ], "title": "resize_imageArguments", "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