merahburam/vectorizer-v2 🖼️🔢❓✓ → 🖼️

▶️ 2.0K runs 📅 Aug 2025 ⚙️ Cog 0.16.3 ⚖️ License
image-to-svg raster-to-vector

About

Professional PNG to SVG vectorization with VTracer. Lightning-fast conversion with superior quality.

Example Output

Output

Example output

Performance Metrics

0.36s Prediction Time
21.69s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/NZy9bUgfmDMrd27HRutiVuwHmC9DInR2eqVsLLQLWtrehMzv/940.png",
  "min_area": 50,
  "threshold": 0.5,
  "vectorizer": "vtracer",
  "color_count": 8,
  "optimize_svg": true,
  "simplify_tolerance": 2
}
Input Parameters
image (required) Type: string
Input PNG/JPG image to vectorize into SVG
min_area Type: integerDefault: 50Range: 10 - 1000
Minimum area for shapes (pixels)
threshold Type: numberDefault: 0.5Range: 0 - 1
Threshold for bitmap conversion (Potrace only)
vectorizer Default: vtracer
Vectorization method
color_count Type: integerDefault: 8Range: 2 - 16
Maximum number of colors to extract
optimize_svg Type: booleanDefault: true
Optimize SVG output (remove white backgrounds, simplify paths)
simplify_tolerance Type: numberDefault: 2Range: 0.5 - 10
Path simplification tolerance
Output Schema

Output

Type: stringFormat: uri

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 → 257068 bytes (-4608)
✅ SVG created successfully (257090 characters)
🎨 File saved to: /tmp/vectorized_result.svg
📥 TO DOWNLOAD YOUR SVG:
Click the download button ⬇️ below this output
The SVG file will download directly to your computer
Perfect for use in design software, websites, or printing!
Version Details
Version ID
710ceb70bc468d7ee6f252a16a7d9b60e9fbe24786965dbc2e808c2de38a5a32
Version Created
August 22, 2025
Run on Replicate →