vtracer
Python bindings for the Rust Vtracer raster-to-vector library
Decision gist · record as of 2026-08-14
Yes, if you need to convert raster images to SVG. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and offers a straightforward API with both file and in-memory workflows. Install friction is moderate due to compiled bindings, but prebuilt wheels cover most platforms. No runtime dependencies simplifies deployment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; compiled wheels available for common platforms but may require build tools on unsupported architectures.
- Medium install friction due to compiled Rust bindings, but prebuilt wheels cover common platforms (Linux x86_64, ARM, macOS, Windows).
- Package is actively maintained with recent releases.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
last release 2026-03-23 (144 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 298,924 downloads/mo, #7,866 on PyPI
Alternatives
Verify before relying
pip install vtracer
import vtracer
# Multicolor SVG from file
vtracer.convert_image_to_svg_py('/path/to/image.jpg', '/path/to/output.svg')
# Binary (line art) mode
vtracer.convert_image_to_svg_py('/path/to/image.jpg', '/path/to/output.svg', colormode='binary')
# From raw bytes
svg_str = vtracer.convert_raw_image_to_svg(image_bytes, img_format='jpg')- Performance characteristics and memory usage for gigapixel-scale images mentioned in description.
- Specific image formats supported beyond JPG and PNG.
- Comparison of output compactness and shape count versus Potrace or Adobe Illustrator's Image Trace in practice.
What it is and what it does
VTracer is a Python binding to a Rust-based raster-to-vector converter that transforms bitmap images into scalable SVG graphics. It processes images through a pipeline that can handle colored high-resolution scans as well as low-resolution pixel art, outputting compact vector files with fewer shapes than traditional tools. The package offers multiple modes: multicolor vectorization for photographs and scans, binary mode for line art and technical drawings, and configurable parameters for curve fitting, color precision, and shape hierarchy.
The tool is designed for both high-resolution document scanning (originally built for historic blueprints) and retro game artwork. It accepts input as file paths, raw image bytes, or pixel arrays, and outputs SVG strings or files. With no runtime dependencies and prebuilt wheels for most platforms, installation is straightforward on standard systems, though unsupported architectures may require compilation.
Use it for
- Convert scanned documents or blueprints to vector format for archival, editing, or CAD integration.
- Trace pixel art or retro game graphics to scalable SVG for web or print use.
- Batch-convert photographs to stylized vector graphics with color or binary mode.
- Process image data from HTTP requests or in-memory sources without intermediate file I/O.
- Generate compact vector graphics from high-resolution images for reduced file size.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to convert raster images to SVG.
The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and offers a straightforward API with both file and in-memory workflows. Install friction is moderate due to compiled bindings, but prebuilt wheels cover most platforms. No runtime dependencies simplifies deployment.
Install
vtracer on PyPI
Before you install
Medium install friction due to compiled Rust bindings, but prebuilt wheels cover common platforms (Linux x86_64, ARM, macOS, Windows). Package is actively maintained with recent releases.
Requires Python 3.7 or later; compiled wheels available for common platforms but may require build tools on unsupported architectures.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install vtracer
import vtracer
# Multicolor SVG from file
vtracer.convert_image_to_svg_py('/path/to/image.jpg', '/path/to/output.svg')
# Binary (line art) mode
vtracer.convert_image_to_svg_py('/path/to/image.jpg', '/path/to/output.svg', colormode='binary')
# From raw bytes
svg_str = vtracer.convert_raw_image_to_svg(image_bytes, img_format='jpg')
Verify before relying
- Performance characteristics and memory usage for gigapixel-scale images mentioned in description.
- Specific image formats supported beyond JPG and PNG.
- Comparison of output compactness and shape count versus Potrace or Adobe Illustrator's Image Trace in practice.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 144 days since the last release |
| First released | |
| Downloads | 298,924 / month, #7,866 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust |
Evidence: vtracer-0.6.15-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; vtracer-0.6.15-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; vtracer-0.6.15-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; vtracer-0.6.15-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; vtracer-0.6.15-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; vtracer-0.6.15-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; vtracer-0.6.15-cp310-cp310-musllinux_1_2_aarch64.whl; vtracer-0.6.15-cp310-cp310-musllinux_1_2_armv7l.whl; vtracer-0.6.15-cp310-cp310-musllinux_1_2_i686.whl; vtracer-0.6.15-cp310-cp310-musllinux_1_2_x86_64.whl; vtracer-0.6.15-cp310-cp310-win_amd64.whl; vtracer-0.6.15-cp311-cp311-macosx_10_12_x86_64.whl; vtracer-0.6.15-cp311-cp311-macosx_11_0_arm64.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; vtracer-0.6.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; vtracer-0.6.15-cp311-cp311-musllinux_1_2_aarch64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “image to svg converter”
- vtracerConverts raster images (JPG, PNG) into vector graphics (SVG) by…
- napari-svgNapari-svg is a plugin that exports image data and annotations from…
- CairoSVGCairoSVG converts SVG files to PDF, EPS, PS, and PNG formats using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also color-matcher · pictex · potracer · resvg_py · scour · vl-convert-python · CairoSVG · napari-svg · dash-svg · img2pdf