Vectorize Image → Editable Paths
illustrator_vectorize_imageConvert raster images into editable vector paths in Illustrator using VTracer or Image Trace. Ideal for logos and flat art, reducing manual redrawing.
Instructions
Turn a raster image (PNG/JPG, e.g. AI-generated art a client sent) into editable VECTOR PATHS in Illustrator. This automates the 'redraw the artwork from scratch' task.
Engines:
'vtracer' (default): open-source VTracer produces a clean SVG that is opened as editable paths. Usually cleaner than Image Trace; free and local. Needs the
vtracerbinary installed (see README).'image_trace': Illustrator's built-in Image Trace (no install), kept as a fallback.
Input: path (absolute) OR image_base64 (bytes / data: URI, for images pasted in chat).
VTracer args: mode ('color'|'blackwhite'), curve_mode ('spline'|'polygon'|'pixel'), filter_speckle (remove specks, higher = cleaner), color_precision (2-8), corner_threshold (deg). Image Trace args: mode, preset, max_colors, threshold, path_fidelity, corner_fidelity, noise_fidelity, expand.
Best on logos, flat art, line art, and few-color graphics. Photorealistic images produce many paths and usually need manual cleanup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Color mode. (grayscale applies to Image Trace only). | color |
| path | No | Absolute path to the image file. | |
| engine | No | Vectorization engine. Default 'vtracer' (free, local, cleaner). | vtracer |
| expand | No | Image Trace: expand into editable paths. | |
| preset | No | Image Trace preset name (image_trace engine). | |
| threshold | No | Image Trace: B/W cutoff. | |
| curve_mode | No | VTracer curve fitting. 'spline' = smooth curves (default). | spline |
| max_colors | No | Image Trace: palette size. | |
| image_base64 | No | Image bytes as base64 (or data: URI). Use when there's no file on disk. | |
| new_document | No | Image Trace: trace into a fresh RGB document. | |
| path_fidelity | No | Image Trace: Paths slider. | |
| filter_speckle | No | VTracer: discard patches smaller than N px (higher = cleaner). Default 4. | |
| noise_fidelity | No | Image Trace: Noise slider. | |
| color_precision | No | VTracer: color detail in bits (2-8). Lower = fewer colors. | |
| corner_fidelity | No | Image Trace: Corners slider. | |
| corner_threshold | No | VTracer: corner angle threshold in degrees. Default 60. |