Vectorize image
vectorize_imageConvert bitmap images (PNG, JPG, PSD, TIFF) into editable SVG, AI, EPS, PDF, DXF, or EMF vector files with automatic tracing, detail, colour, and layering options.
Instructions
Convert a bitmap image (PNG, JPG, GIF, BMP, TIFF, PSD, TGA...) into an editable vector file with Vector Magic Desktop Edition. Uses Vector Magic's fully automatic mode, then optionally changes the level of detail and colour mode, and writes SVG, AI, EPS, PDF, DXF or EMF (or a re-rendered PNG/JPG/BMP/TIF). Returns the output path, a summary of what Vector Magic detected (image type, detail, number of colours) and a preview image of the vector result. Takes ~10-30 s per image; large photos take longer. Files are never overwritten unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | auto = Vector Magic picks a reduced palette (best for logos and flat artwork). unlimited = keep every colour (photos, gradients). | auto |
| detail | No | Level of detail. auto = what Vector Magic picks (usually high). low gives simpler shapes and smoother curves; high keeps small details. | auto |
| format | No | Output format. Editable vector: svg, ai, eps, pdf, dxf, emf. Bitmap rendered from the vector result: png, jpg, bmp, tif. Default svg. | svg |
| preview | No | Return a PNG preview of the vector result (as shown by Vector Magic). | |
| dxf_mode | No | DXF only. splines: lines + bicubic splines (smallest, most faithful). few_lines / many_lines: curves flattened into straight segments for CAD/CNC software that does not read splines. | splines |
| overwrite | No | Replace an existing output file. Without it, files are never overwritten. | |
| input_path | Yes | Absolute path of the image to vectorize. | |
| shape_mode | No | How shapes are arranged. stacked: shapes sit on top of each other (easiest to edit, no gaps). adjoining: shapes fit into cut-outs of the shapes below. adjoining_grouped: adjoining and grouped by colour. | stacked |
| output_path | No | Absolute output path. Default: next to the input with the format extension (adds _2, _3... instead of overwriting). | |
| show_window | No | Keep the Vector Magic window on screen while it works (debugging). By default it runs off-screen. | |
| bitmap_scale | No | Bitmap formats only: render at 1x, 2x or 4x the original pixel size. | |
| stroke_shapes | No | Outline every shape boundary with a stroke of its own colour (hides hairline gaps in some viewers). |