merahburam/vectorizer 🖼️🔢❓✓ → 🖼️
About
Professional PNG to SVG vectorization with VTracer
Example Output
Output
Performance Metrics
0.36s
Prediction Time
8.22s
Total Time
All Input Parameters
{
"image": "https://replicate.delivery/pbxt/NZZhdsXLHW1Y9cnIsU9BkESCsVgv2loUiDiQVkm0dmQWvmQW/940-2.png",
"min_area": 50,
"threshold": 0.5,
"vectorizer": "vtracer",
"color_count": 8,
"optimize_svg": true,
"simplify_tolerance": 2
}
Input Parameters
- image (required)
- Input PNG/JPG image to vectorize
- min_area
- Minimum area for shapes (pixels)
- threshold
- Threshold for bitmap conversion (Potrace only)
- vectorizer
- Vectorization method
- color_count
- Maximum number of colors to extract
- optimize_svg
- Optimize SVG output (remove white backgrounds, simplify paths)
- simplify_tolerance
- Path simplification tolerance
Output Schema
Output
Example Execution Logs
Starting vectorization with vtracer:
- Color count: 8
- Min area: 50
- Simplify tolerance: 2.0
- Optimize SVG: True
Using VTracer (quality mode) - Rust-powered vectorization...
Processing 475x475 image with VTracer...
VTracer config: {'color_mode': 'color', 'hierarchical': 'stacked', 'mode': 'spline', 'filter_speckle': 2, 'color_precision': 8, 'layer_difference': 8, 'corner_threshold': 30, 'length_threshold': 2.0, 'max_iterations': 20, 'splice_threshold': 30, 'path_precision': 3}
VTracer CLI not found, trying Python API...
VTracer Python API successful! Output size: 252460 chars
Optimizing SVG output...
SVG optimization complete:
Paths: 580 → 580 (0 removed)
Size: 252460 → 257033 bytes (-4573)
Version Details
- Version ID
c92fbee02cff6eaed6141dca8aef5358c8338f012973dc83d4245d652739cf29- Version Created
- August 22, 2025