Convert an image to another format
image_convertCall this tool to re-encode an image as PNG, JPEG, BMP, GIF or TIFF. quality is JPEG-only. Transparency converted to JPEG flattens onto white; the answer says so. Free tier: sources up to 4 MP.
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": {
"path": "<path>",
"format": "<format>",
"out_path": "<out_path>"
},
"name": "image_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Name of an image uploaded with image_upload, or one this server wrote earlier | |
| format | Yes | The output format | |
| quality | No | JPEG quality 1-100, default 80. Ignored for the other formats | |
| out_path | Yes | Name for the file to write; it comes back as a download link valid for one hour. The extension decides the output format; without a known one the input's format is kept | |
| overwrite | No | Replace out_path if it already exists. Default false. Never allows an output to be one of the inputs |