MCP Media Processing Server

resize-image

Resize image to specified dimensions

Input Schema

NameRequiredDescriptionDefault
heightNoTarget height in pixels
inputPathYesAbsolute path to input image file
maintainAspectRatioNoWhether to maintain aspect ratio when resizing
outputFilenameNoOutput filename (only used if outputPath is not provided)
outputPathNoOptional absolute path for output file. If not provided, file will be saved in Downloads folder
widthNoTarget width in pixels

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "height": { "description": "Target height in pixels", "type": "number" }, "inputPath": { "description": "Absolute path to input image file", "type": "string" }, "maintainAspectRatio": { "default": true, "description": "Whether to maintain aspect ratio when resizing", "type": "boolean" }, "outputFilename": { "description": "Output filename (only used if outputPath is not provided)", "type": "string" }, "outputPath": { "description": "Optional absolute path for output file. If not provided, file will be saved in Downloads folder", "type": "string" }, "width": { "description": "Target width in pixels", "type": "number" } }, "required": [ "inputPath" ], "type": "object" }