Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Benchmarking a Browser-Based Vectorizer Against Potrace

说明与用途

对浏览器端向量化工具12pixa与Potrace进行可复现基准测试,结果显示Potrace更快、生成的SVG更小,在单色任务中表现更好,而12pixa在彩色任务中更准确。

问题

Assessing the performance and accuracy of a browser-based SVG vectorizer (12pixa) compared to the established Potrace tool.

结果

Potrace is ~70× faster, produces ~7× smaller SVGs, and outperforms 12pixa on monochrome tasks. 12pixa achieves the lowest MAE on color images and is the only tool that outputs a color palette.

工作流

  • Prepare PNG input (Potrace cannot read PNG) using scripts/prepare.py
  • Run Potrace with --svg to generate SVG
  • Run 12pixa (WebAssembly) in a Web Worker
  • Measure execution time, SVG file size, color count, and MAE against original raster
  • Compare results and analyze discrepancies

证据

potrace is roughly 70x faster and produces a file 7x smaller.

来源

my own black-and-white preset is the worst result in the table.

来源

Where my tool wins is colour — MAE 3.47, the most accurate reproduction of the three.

来源

  • 记录日期: 2026-09-14T11:45:33.817Z