compress-image
Reduce PNG image file size using ImageMagick by adjusting compression quality (1-100). Specify input path, optional output path, or save to Downloads folder for efficient storage management.
Instructions
Compress PNG image using ImageMagick
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>"
},
"name": "compress-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Absolute path to input PNG image | |
| 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 | |
| quality | No | Compression quality (1-100) |