Skip to content

Why Hermogen Reconstructs Geometry Instead of Tracing Pixels

How parametric geometric reconstruction differs from classic contour tracers and cloud AI vectorizers—and when each approach fits best.

Page outline

Most image-to-SVG tools treat a raster logo as a set of colored blobs whose outlines need to be traced. That approach reproduces pixels, not design intent. Open the resulting SVG in Figma, Illustrator, or a code editor and you immediately see the cost: a simple circle becomes a 6-segment Bézier polygon, uniform lines turn into doubled outline paths with 12+ anchor points, overlapping shapes leave hairline white seams, and repeated letters in a wordmark never quite match each other.

Hermogen takes a different approach: parametric geometric reconstruction. Instead of approximating silhouettes with generic curve chains, Hermogen infers the underlying geometric objects—<circle>, <ellipse>, <rect rx>, <line>, uniform-width centerline strokes, amodally completed background layers, and aligned typographic rows—directly from the antialiased coverage values of the input image.


Three Generations of Raster-to-Vector Conversion

Every vectorization tool on the market falls into one of three technical architectures, each with distinct strengths and structural trade-offs:

DimensionClassic Contour Tracers (Potrace, VTracer, Image Trace)Cloud Hybrid & AI/VLM Vectorizers (Vectorizer.AI, Recraft, QuiverAI, StarVector)Parametric Geometric Reconstruction (Hermogen)
Core modelThreshold or cluster pixels, trace region boundaries into Bézier chainsDeep-learning edge/curve prediction or multimodal LLM SVG code generationAnalytical SDF fitting + Minimum Description Length (MDL) over native primitives & strokes
Output structureHigh-node filled <path> polygonsCleaner <path> curves (hybrid) or generated primitives (VLMs)Native <circle>, <rect>, <ellipse>, <line>, editable centerline stroke-width, compact paths
Overlaps & layeringCutout jigsaw pieces or flat stacked blobsCutout + gap-filler strokes or stacked filled outlinesAmodal completion behind occluders + non-planar weave decomposition (e.g. interlocking rings)
Determinism & fidelity100% deterministic; struggles with anti-aliasing and thin gapsHybrid: high contour accuracy; VLMs: risk of geometric hallucination100% deterministic; directly optimizes against subpixel antialiased coverage
Runtime & deploymentFast, local CPU (C / Rust)Remote GPU cloud APIs; per-image fees or seat/credit limitsNative Rust CPU (SIMD + multithreading); 100% local/offline, zero GPU, zero per-image cost
Best suited forQuick monochrome silhouettes (Potrace) or full-color illustrations (VTracer)Photos, complex illustrations, painterly brushwork, or cloud design workflowsLogos, brand marks, UI icons, badges, diagrams, and clean flat-color graphics

What Changes When an Engine Understands Geometry

1. Native Primitives and Editable Centerline Strokes—Not Outlined Blobs

A classic tracer sees a curved sound wave or an icon stroke as a closed ribbon and outlines both sides with dozens of Bézier handles. If a designer later wants to adjust the stroke thickness from 14px to 16px, they have to redraw the shape.

Hermogen evaluates open and closed centerline strokes (stroke-width, stroke-linecap, stroke-linejoin) head-to-head against filled contours under a unified Minimum Description Length (MDL) objective.

For example, given a 249×256 PNG of the Spotify icon, Hermogen reconstructs the entire mark as 4 elements and 8 path commands (668 bytes)—one native <circle> and three editable round-capped strokes:

<svg xmlns="http://www.w3.org/2000/svg" width="249" height="256" viewBox="0 0 249 256">
  <circle cx="124.49" cy="128" r="110.73" fill="#1ed760"/>
  <path d="M 67.15 161.37 C 106.72 153.43 136.29 154.15 169.16 172.63"
        fill="none" stroke="#000000" stroke-width="14.47" stroke-linecap="round" stroke-linejoin="round"/>
  <path d="M 58.54 92.43 C 92.57 81.76 139.86 84.37 173.57 96.05 C 179.13 97.97 189.89 102.54 195.13 106.17"
        fill="none" stroke="#000000" stroke-width="21.5" stroke-linecap="round" stroke-linejoin="round"/>
  <path d="M 64.33 128.03 A 153.31 153.31 0 0 1 181.36 141.6"
        fill="none" stroke="#000000" stroke-width="18.09" stroke-linecap="round"/>
</svg>

Every stroke width, radius, and arc remains directly editable.

2. Antialiased Coverage as Signal—Not Noise

Most vectorizers discard continuous anti-aliasing early by snapping pixels to hard color regions. Hermogen does the opposite: Stage 1 decomposes each pixel into continuous per-color coverage fractions in premultiplied sRGB (while filtering out 2-color and 3-color Porter-Duff conflation-AA ghost fringes that frequently fool other tracers into emitting dozens of stray micro-paths).

Because the continuous coverage map is preserved all the way through refinement:

  • Analytical SDF optimization fits edge coordinates to subpixel accuracy directly against the original anti-aliased pixels.
  • Subpixel valley-pinch detection separates gaps narrower than a single pixel (such as the 0.94 px top gap in the Toyota emblem at 256px width) without blurry mechanical upscaling.
  • Acute needle-tip extrapolation recovers sharp tips (such as the Nike swoosh apex) from faint sub-0.5 alpha tails ahead of the binary contour.

3. Amodal Completion and Non-Planar Weaves

When two shapes overlap in a raster image, the lower shape is visually cut into pieces. Cutout tracers leave those pieces fragmented—often adding hidden stroke-width="2" plaster outlines underneath to hide anti-aliasing cracks between adjacent pieces.

Hermogen solves overlapping layers topologically:

  • Amodal completion reconstructs occluded shapes cleanly underneath foreground layers so there are zero white anti-aliasing seams and every layer remains intact when moved.
  • Non-planar weave decomposition detects cyclically interlocking strokes—such as the five Olympic rings, where no single Z-order works—and emits five complete <circle> strokes plus minimal over-crossing arc patches that terminate strictly inside their own ring color:
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="133" viewBox="0 0 256 133">
  <circle cx="128" cy="49.79" r="32.86" fill="none" stroke="#000000" stroke-width="6.37"/>
  <circle cx="49.81" cy="49.79" r="32.86" fill="none" stroke="#0078d0" stroke-width="6.37"/>
  <circle cx="167.1" cy="83.2" r="32.86" fill="none" stroke="#00a651" stroke-width="6.37"/>
  <circle cx="206.19" cy="49.79" r="32.86" fill="none" stroke="#f0282d" stroke-width="6.37"/>
  <circle cx="88.91" cy="83.2" r="32.86" fill="none" stroke="#ffb114" stroke-width="6.37"/>
  <path d="M 160.43 44.45 A 32.87 32.87 0 0 1 159.76 58.26" fill="none" stroke="#000000" stroke-width="6.37"/>
  <path d="M 128.01 82.66 A 32.87 32.87 0 0 1 114.69 79.85" fill="none" stroke="#000000" stroke-width="6.37"/>
  <path d="M 82.24 44.48 A 32.86 32.86 0 0 1 81.56 58.26" fill="none" stroke="#0078d0" stroke-width="6.37"/>
  <path d="M 167.1 50.34 A 32.86 32.86 0 0 1 180.4 53.16" fill="none" stroke="#00a651" stroke-width="6.37"/>
</svg>

4. Global Geometric and Typographic Regularization (Without Guessing Fonts)

Brand logos almost always use customized letterforms, so OCR-based font replacement risks distorting brand identity. Instead, Hermogen applies geometry-driven regularization, with every adjustment verified against pixel coverage SSE so intentional curves and custom shapes are never flattened:

  • Shared radii, stroke widths, and canonical angles (0°, 45°, 90°).
  • Wordmark baseline, x-height, and cap-height alignment across flat horizontal letter edges while preserving curved bowl overshoots (o, c, s) and curved baselines (such as Netflix).
  • Repeated-glyph consensus, which detects identical twin letters in the same wordmark (e.g. n/n, d/d, k/k, o/o) via subpixel patch alignment and unifies them to a single clean canonical vector.

5. Coverage-Guided Node Simplification as a Control Knob

Classic SVG optimizers simplify paths blind to the original raster, which can clip corners or shift curves unpredictably. Hermogen's post-processing simplifier merges collinear lines, consolidates smooth cubics, and compresses circular arcs directly against the original antialiased coverage map, guarded by a per-pixel error ceiling. Users can tune --simplicity-bias from near-lossless precision (0.25–1.0) to ultra-minimal anchor counts (2.0+).


Honest Scope: Where Hermogen Fits—and Where It Doesn't

Hermogen is deliberately specialized rather than trying to be an all-purpose photo tracer:

Choose Hermogen when you need:

  • Editable, minimal-node SVGs from flat-color logos, brand marks, icons, badges, UI assets, or diagrams.
  • Native SVG primitives (<circle>, <rect>, <line>) and real centerline stroke-width attributes.
  • Deterministic, 100% local/offline execution in a native Rust library or CLI with zero GPU requirement, zero cloud data transfer, and zero per-image API fees.

Choose another tool when you need:

  • Photorealistic images, gradients, drop shadows, or textured painterly artwork (Hermogen v1 is flat solid-color only).
  • Highly ornate hand-drawn brushwork or tiny sub-5px micro-marks at low raster resolutions, where high-node deep-learning contour tracers currently hug irregular details tighter.
  • Editable <text> nodes backed by live system fonts (Hermogen intentionally reconstructs typography geometrically).

See How This Compares in Practice

Measured real-world head-to-head benchmarks (256px & 512px → 1024px eval):

Additional competitor comparisons (architecture & buyer-fit ready; 61-logo benchmark tables ready to populate):

Last updated: December 4, 2026