Image to SVG
v1.0.1MCP server that converts raster images (PNG/JPG/WEBP) to SVG vector format
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_image_to_svg Convert Image To Svg
Convert a raster image (PNG, JPG, or WEBP) to SVG vector format. Accepts either base64-encoded image data or a URL. Returns the SVG content as a string. Adjust tracing parameters to control the fidelity and complexity of the output.
| Parameter | Type | Description |
|---|---|---|
color_precision | integer | Number of significant bits for color quantization. Lower = fewer colors, simpler SVG. Default 6. |
colormode | string | Color mode: 'color' for full color, 'binary' for black/white line art |
corner_threshold | integer | Angle threshold in degrees for detecting corners. Default 60. |
filter_speckle | integer | Remove speckles of this many pixels or fewer. Higher = cleaner but loses small details. Default 4. |
hierarchical | string | Layer arrangement: 'stacked' (overlapping) or 'cutout' (non-overlapping) |
image_base64 | Base64-encoded image data (PNG, JPG, or WEBP). Provide this OR image_url, not both. | |
image_url | URL to fetch the image from (PNG, JPG, or WEBP). Provide this OR image_base64, not both. | |
layer_difference | integer | Color difference threshold for merging layers. Higher = fewer layers, simpler SVG. Default 16. |
length_threshold | number | Minimum path segment length. Default 4.0. |
max_iterations | integer | Maximum curve fitting iterations. Higher = more accurate but slower. Default 10. |
mode | string | Tracing mode: 'spline' (smooth curves), 'polygon' (straight edges), or 'none' (pixel-perfect) |
path_precision | integer | Decimal precision for SVG path coordinates. Lower = smaller file size. Default 8. |
splice_threshold | integer | Angle threshold for splicing splines. Default 45. |