How tracing algorithms convert pixels to vector paths — threshold, color quantization, and centerline.

Vector tracing (also called image tracing or vectorization) is the process of converting a raster image (pixels) into vector graphics (mathematical paths). It's how you turn a PNG into an SVG.

How Tracing Works

A tracing algorithm analyzes the pixels in a raster image and identifies regions of similar color. It then traces the boundary of each region to produce a vector path — a mathematical curve that defines the shape's outline. The result is an SVG (or AI/EPS) file containing paths instead of pixels.

Types of Tracing

  • Threshold-based — converts to black and white based on brightness, then traces the boundary. Simple and fast
  • Color quantization — groups pixels into a limited number of colors, then traces each color region separately. Used for multi-color images
  • Centerline tracing — traces the center of lines rather than their outline. Used for line art and hand-drawn sketches

Quality Factors

Tracing quality depends on: source image resolution (higher is better), color complexity (fewer flat colors = better), edge clarity (sharp edges trace better than anti-aliased ones), and the algorithm's settings (threshold, number of colors, path simplification).

Try vector tracing free with Shape to Vector — upload any PNG and see the traced SVG result in seconds.