vectorizar_imagen
Convert logos, icons, illustrations, or drawings into SVG, PDF, EPS, or DXF files. It keeps transparency, flattens colors, and traces edges for vinyl cutting or laser work.
Instructions
Vectorizes: turns a logo, icon, illustration or drawing into SVG, PDF, EPS or DXF, and saves it as a NEW file (next to the original, or in salida). It detects the kind of image, measures the preview with SSIMULACRA 2 and, with nota_objetivo, searches for the lightest drawing that gets there. Transparency stays transparent. To cut vinyl or laser, estilo trazar_bordes and, in DXF, nivel_dxf. With photos it gives a poster of flat colors. Examples: {"ruta": "/logo.png"} · {"ruta": "/logo.png", "salida": "/logo.pdf", "colores": 3} · {"ruta": "/icon.png", "formato": "dxf", "estilo": "trazar_bordes", "nivel_dxf": "arcos"}
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": {
"ruta": "<ruta>"
},
"name": "vectorizar_imagen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruta | Yes | Absolute path of the image (~ is accepted). | |
| tipo | No | auto (by default: detects pixel art, photo or illustration), logotipo (logo), ilustracion (illustration), byn (black and white), pixel_art or foto (photo). | |
| estilo | No | rellenar (fill, by default), trazar_formas (each shape's outline) or trazar_bordes (each edge once, to cut vinyl or laser). | |
| grosor | No | Stroke width in pixels (1), in the stroke styles. | |
| paleta | No | Fixed palette in #rrggbb: each pixel goes to the closest color (no gradients). | |
| salida | No | Where to put it: a folder, or a .svg, .pdf, .eps or .dxf file. By default, next to the original. Nothing is ever overwritten. | |
| colores | No | Colors at most, 2 to 256, all flat (no gradients). | |
| detalle | No | Detail from 0 to 100 (75): more is more faithful and heavier. With nota_objetivo, the minimum. | |
| formato | No | svg (by default), pdf, eps or dxf. If salida is a file, the one of its extension. | |
| nivel_dxf | No | For DXF: rectas (lines only), arcos (lines and arcs) or splines (by default: also free curves and ellipses). Some cutting programs don't read splines. | |
| degradados | No | false: flat colors only (by default, gradients where the color changes smoothly). | |
| color_trazo | No | Stroke color in #rrggbb (by default, each shape's; in trazar_bordes, black). | |
| nota_objetivo | No | Search for the lightest drawing that gives this SSIMULACRA 2 score (up to 9 trials). Many drawings don't go beyond 75–85. |