Convert, vectorize, resize or inspect an image
process_imageConvert a JPEG, PNG, WebP, HEIC or supported static SVG to JPEG, PNG or WebP (format, quality, lossless). Vectorize a PNG or JPEG to black SVG paths on a transparent background (threshold). The trace fits within 1024 by 1024 pixels. For JPEG, PNG or WebP, compress (quality), resize (width, height, fit contain or cover, upscale, format), read metadata including any GPS position (metadata), strip EXIF, XMP and IPTC (strip), find its main colors (colors, count) or make favicons as a ZIP (favicon, crop fit, trim or center, name). Resize also accepts HEIC. Metadata and strip also accept GIF. Give image_base64 or storage_id, for example the result of an earlier call. Every result is stored for 24 hours and the answer carries its storage_id, so calls can be chained. No API key, no account and no sign up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | For resize to a width and a height: contain keeps the whole image inside the box, cover fills the box and crops what sticks out. | |
| crop | No | For favicon: fit pads the image to a square, trim removes plain borders first and then pads, center fills the square and crops what sticks out. | |
| name | No | favicon only: the site name for the manifest. | |
| count | No | For colors, how many main colors to find, 2 to 16. | |
| width | No | Target width in pixels for resize, 1 to 10000. | |
| format | No | The output format for convert and resize: jpeg, png or webp. jpg is the same as jpeg. | |
| height | No | Target height in pixels for resize, 1 to 10000. | |
| quality | No | Quality from 40 to 95 for JPEG and lossy WebP output. | |
| upscale | No | For resize, true lets the image grow beyond its original size. | |
| lossless | No | For WebP output, true stores the image losslessly and ignores quality. | |
| operation | Yes | convert to another format, vectorize to SVG paths, compress, resize, read metadata, strip metadata, find the main colors, or make favicons. | |
| threshold | No | Brightness threshold in percent for vectorize. Higher values include lighter pixels. | |
| storage_id | No | A storage_id from store_file, from a previous tool result, or from REST /storage. Objects expire 24 hours after they were stored. | |
| image_base64 | No | The file as standard base64, at most about 190 KB of file through MCP. For a larger file, store it with REST POST /services/v1/storage first and pass storage_id. |