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

Benchmarking a Browser-Based Vectorizer Against Potrace

Описание и применение

Проведено воспроизводимое сравнение браузерного векторизатора 12pixa с 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