Install & Compatibility
Where this runs
tested against v0.6.15 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
convert_image_to_svg_py
✓ from vtracer import convert_image_to_svg_py
✗ from vtracer import convert_image_to_svg_path
convert_pixels_to_svg
✓ from vtracer import convert_pixels_to_svg
convert_raw_image_to_svg
✓ from vtracer import convert_raw_image_to_svg
Converts a raster image to SVG with customizable vectorization parameters.
from vtracer import convert_image_to_svg_path
# Convert a PNG to SVG with default settings
input_path = 'input.png'
output_path = 'output.svg'
convert_image_to_svg_path(
input_path,
output_path,
colormode='color', # 'color' or 'binary'
hierarchical='stacked', # 'stacked' or 'cutout'
mode='spline', # 'spline' or 'polygon'
filter_speckle=4, # Remove speckles smaller than this
color_precision=6, # Color quantization bits (0-8)
layer_difference=16, # Merge layers if color diff ≤ this
corner_threshold=60, # Corner detection angle threshold
length_threshold=4.0, # Curve approximation threshold
max_iterations=10, # Max iterations per path
splice_threshold=45, # Splice detection angle
path_precision=3 # Path simplification (0=lossless, 3=high quality)
)
print(f'Converted {input_path} to {output_path}')
Upgrade
Version history
0.6.15latest on PyPI · released Mar 23, 2026
Audit
Dependencies
numpyrequiredUsed internally for image processing, installed automatically.
pillowrequiredUsed for reading image files (JPEG, PNG etc.), installed automatically.