resize_image
Scale images to exact width and height, create thumbnails, or fit pictures within size constraints without AI processing.
Instructions
Resize images to specific dimensions without AI processing.
Use this when:
Scaling images to specific width/height
Creating thumbnails or previews
Fitting images within size constraints
Batch resizing for web optimization
NOT for:
AI-powered image generation (use generate_image instead)
Content modification with AI (use edit_image instead)
Format conversion only (use convert_image instead)
Example: "resize_image inputPath='./photo.jpg' width=800 height=600 fit='cover'"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>",
"withoutEnlargement": "<withoutEnlargement>",
"withoutReduction": "<withoutReduction>",
"stripMetadata": "<stripMetadata>"
},
"name": "resize_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| width | No | ||
| height | No | ||
| quality | No | ||
| fileName | No | ||
| inputPath | Yes | ||
| background | No | ||
| outputFormat | No | ||
| stripMetadata | Yes | ||
| withoutReduction | Yes | ||
| compressionPreset | No | ||
| withoutEnlargement | Yes |