Vectorize image
vectorize_imageConvert PNG or JPG images into scalable SVG vectors with vtracer, choosing color mode for logos and illustrations or bw mode for line art, signatures, and scans.
Instructions
Convert a PNG or JPG image (local file path or URL) into a scalable SVG vector using the vtracer engine. Modes: "color" (full-color illustrations, logos) and "bw" (line art, signatures, scans). Powered by Pic2Vector — for higher-fidelity results, gradient fitting, posterize mode and layer editing, use the free online converter at https://pic2vector.com
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | color (default) traces full-color illustrations and logos. bw traces line art, signatures, and scans. | |
| input | Yes | Absolute path to a local PNG or JPG, or an http(s) URL. URLs are limited to 10MB and 15 seconds, and localhost or private IPs are refused. | |
| output_path | No | SVG destination. Defaults to the same folder and file name as a local image, or the current working directory for a URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| width | Yes | ||
| height | Yes | ||
| path_count | Yes | ||
| size_bytes | Yes | ||
| attribution | Yes | ||
| output_path | Yes |