resize-image
Resize images to specified dimensions with optional aspect ratio preservation using the MCP Media Processing Server. Input file path and target width/height are required, with output file saving flexibility.
Instructions
Resize image to specified dimensions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | No | Target height in pixels | |
inputPath | Yes | Absolute path to input image file | |
maintainAspectRatio | No | Whether to maintain aspect ratio when resizing | |
outputFilename | No | Output filename (only used if outputPath is not provided) | |
outputPath | No | Optional absolute path for output file. If not provided, file will be saved in Downloads folder | |
width | No | Target 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"
}