Hermogen vs. Potrace: Multi-Color Geometric Primitives vs. Monochrome Silhouette Tracing
An honest, data-backed comparison of Hermogen and Potrace 1.16 across 32 single-color real-world brand logos at 256px and 512px.
Page outline
Potrace (v1.16) has been the gold standard for monochrome bitmap tracing for over two decades. Its optimal polygon decomposition and corner-aware cubic Bézier smoothing produce remarkably clean black-and-white silhouettes and letterforms, powering tools like Inkscape's Trace Bitmap.
However, Potrace is strictly binary (1-bit black-and-white) and outputs filled cubic Bézier outlines only. Hermogen targets modern multi-color and geometric brand assets with continuous antialiased coverage unmixing, native SVG primitives, editable centerline strokes, amodal layer completion, and global geometric/typographic regularization. See How Hermogen Works for architectural context.
At a Glance: Hermogen vs. Potrace 1.16
| Criterion | Hermogen | Potrace 1.16 (measured Dec 2026) |
|---|---|---|
| Core approach | Multi-color coverage unmixing + analytical SDF/MDL primitive & stroke reconstruction | 1-bit binary bitmap thresholding + optimal polygon decomposition + cubic Bézier smoothing |
| Color support | Native multi-color flat graphics + alpha transparency + Z-order & amodal completion | Monochrome (1-color) only (multi-color requires external multi-scan layering) |
| Anti-aliasing handling | Preserves continuous subpixel AA coverage through SDF optimization | Hard binary threshold (50%) discards subpixel AA gradients before tracing |
| Native SVG primitives | Yes—<circle>, <rect rx>, <ellipse>, <line> (69 across 32 mono logos at 256px) | None (0)—filled <path> cubics only |
| Editable centerline strokes | Yes—uniform stroke-width, caps, joins & interlocking weaves (60 at 256px) | None (0)—strokes become double-sided filled outlines |
| Compactness (32 mono logos) | 1,640 B / 63.2 nodes / 245 uDOF (256px); 1,907 B / 71.4 nodes / 277 uDOF (512px) | 2,125 B / 98.5 nodes / 427 uDOF (256px); 2,481 B / 119.7 nodes / 500 uDOF (512px) |
| Speed (measured on Apple Silicon) | Seconds (analytical SDF optimization & regularization) | Very fast: 25 ms/logo (256px), 47 ms/logo (512px) (incl. PBM conversion) |
| License & cost | Local engine (commercial packaging TBD) | GPL-2.0+ (copyleft) or commercial Potrace Professional license |
32-Logo Monochrome Subset Head-to-Head Benchmark (Measured Dec 2026)
Methodology
- Fair monochrome subset: Because Potrace is strictly single-color, we evaluated all 32 single-color brand logos from our 61-logo corpus (including Apple, Nike, GitHub, Adidas, Audi, Renault, Toyota, Volkswagen, Tesla, Mitsubishi, Target, Adobe, Netflix, Canon, Coca-Cola, NASA Worm, CNN, Stripe, BBC, Docker, Airbnb, Spotify Lockup, IBM, Debian, Go, Vercel, Pinterest, McDonald's, Telekom, PlayStation, Converse, and New Balance).
- Fair Potrace setup: Each transparent PNG's alpha channel was extracted at the standard
50%threshold into a losslessPBMbitmap and traced withpotrace -s -C <exact_brand_hex>so Potrace preserved exact canvas alignment and brand color without cropping margins. - Identical 1024px evaluation: Both Hermogen and Potrace 1.16 were evaluated against the padded ground-truth SVGs at
1024pxusingusvg-parsed node counts and degrees of freedom (immune to Potrace's implicit repeated-command shorthand).
Results at 256px Input (Mean across 32 Single-Color Brand Logos)
| Metric (256px input → 1024px eval, N=32 mono) | Hermogen | Potrace 1.16 |
|---|---|---|
| SVG Size (mean bytes) | 1,640 B (smaller on 32/32) | 2,125 B (1.30×) |
usvg Parsed Nodes (mean) | 63.2 | 98.5 (1.56×) |
usvg-normalized DOF (mean) | 245 | 427 (1.74×) |
| Native Primitives (total across 32) | 69 | 0 |
| Editable Centerline Strokes (total) | 60 | 0 |
| Boundary P95 (lower is better) | 0.153 px | 0.255 px |
| Boundary Max (lower is better) | 0.689 px | 0.941 px |
| Crisp-1024 FG-IoU (higher is better) | 98.37% (32/32 wins) | 96.34% |
| 1024-DSSIM (lower is better) | 0.00305 | 0.00939 (3.08×) |
| Composite Score / Pass% | 88.37 / 84.4% (31/32 wins) | 73.37 / 6.2% |
| Mean Runtime | ~19 s | 25.2 ms (incl. PBM) |
Results at 512px Input (Mean across 32 Single-Color Brand Logos)
| Metric (512px input → 1024px eval, N=32 mono) | Hermogen | Potrace 1.16 |
|---|---|---|
| SVG Size (mean bytes) | 1,907 B (smaller on 30/32) | 2,481 B (1.30×) |
usvg Parsed Nodes (mean) | 71.4 | 119.7 (1.68×) |
usvg-normalized DOF (mean) | 277 | 500 (1.80×) |
| Native Primitives (total across 32) | 50 | 0 |
| Editable Centerline Strokes (total) | 29 | 0 |
| Boundary P95 (lower is better) | 0.114 px | 0.134 px |
| Boundary Max (lower is better) | 0.442 px | 0.538 px |
| Crisp-1024 FG-IoU (higher is better) | 99.00% (31/32 wins) | 98.11% |
| 1024-DSSIM (lower is better) | 0.00082 | 0.00295 (3.60×) |
| Composite Score / Pass% | 92.08 / 93.8% (30/32 wins) | 82.49 / 34.4% |
| Mean Runtime | ~63 s | 47.3 ms (incl. PBM) |
Key Architectural Differences Observed in the Benchmark
1. Subpixel Antialiased Accuracy vs. 1-Bit Thresholding
At 256px, discarding anti-aliasing via binary thresholding costs Potrace 3× higher perceptual error (0.00939 vs. 0.00305 DSSIM) and 67% larger P95 edge error (0.255 vs. 0.153 px). Narrow sub-pixel gaps (like the top gap of the Toyota emblem) fuse shut under binary thresholding, whereas Hermogen separates them directly from the continuous AA coverage values.
2. Native Primitives & Half the Normalized DOF
Even on strictly single-color logos, Potrace converts crisp geometric marks (Renault, Mitsubishi, Tesla, IBM, Converse) into high-DOF cubic Bézier polygons (1.74×–1.80× higher usvg-normalized DOF and 1.56×–1.68× more parsed nodes than Hermogen) with 0 native <circle>/<rect>/<line> primitives and 0 centerline strokes.
3. Where Potrace 1.16 Is Stronger
- Near-instant speed (
25–47 ms/logo): Hundreds of times faster than Hermogen's analytical SDF refinement—ideal for high-throughput monochrome pipelines. - Impressive high-resolution organic silhouettes: At
512px, Potrace narrows the visual gap dramatically (98.11%FG-IoU,0.134 pxP95) and even edges out Hermogen on06_spotify_lockup(89.1vs.88.4) while coming very close on29_coca_cola(87.7vs.88.9) and15_nike(87.2vs.88.9). - Decades of stability and tiny C footprint: Pre-packaged across Linux, macOS, and Inkscape.
Which One Should You Choose?
Choose Hermogen if:
- You vectorize multi-color logos or geometric monochrome marks and want subpixel accuracy at
256px, native SVG primitives, editable centerline strokes, ~44% fewer normalized DOF, and zero GPL copyleft constraints.
Choose Potrace if:
- Your inputs are strictly high-resolution (
512px+) monochrome silhouettes, ink drawings, or scans, millisecond speed matters more than native primitives/strokes, and GPL-2.0+ (or a Potrace Professional license) fits your distribution model.
Reproducibility
- Evaluated with
potrace 1.16(potrace -s -C <hex>) on the 32 single-color brand logos from the 61-logo corpus (256pxand512px) viacargo run --release -p hermogen-bench --example eval_competitor_svgs.