Image tracing

Also known as: vector tracing

On this page 7

Image tracing, also called vector tracing, is the process of converting a raster image made of pixels into vector graphics made of paths, shapes and fills. In graphic design, it turns scanned sketches, low-resolution logos and photographs into artwork that can be scaled to any size without pixelation and edited node by node.

Tracing can be done automatically by software that detects edges and color regions, or manually by a designer who redraws the image with Bézier curves. Most professional work combines both: automatic tracing for speed, followed by manual cleanup for precision.

How automatic image tracing works

Automatic image tracing works by segmenting the raster image into regions of similar color or brightness and then fitting curves to the boundaries of those regions. The software first reduces the image to a limited palette, a step called color quantization, or to pure black and white through a threshold.

Next, the algorithm traces each region outline as a chain of pixel edges and simplifies that chain into Bézier curves and straight segments. A tolerance setting decides how far the curve may deviate from the pixel edge, which directly controls the trade-off between fidelity and node count.

The table below lists the settings found in most tracing tools and their effect on the result.

SettingWhat it controlsEffect of a higher value
ThresholdBlack and white split pointMore pixels become dark fills
ColorsNumber of quantized colorsMore detail, more shapes
Paths or fidelityCurve fit toleranceTighter fit, more anchor points
CornersSharp versus smooth joinsMore sharp corners preserved
NoiseMinimum region size in pixelsSmall specks are ignored
Typical tracing settings and their effects

Tracing modes and source types

The right tracing mode depends mainly on the nature of the source image. Flat artwork with few colors traces cleanly, while photographs with gradients and soft edges produce thousands of small shapes that are heavy and hard to edit.

The following table matches common sources with the mode that usually gives the best result.

Source imageRecommended modeExpected quality
Ink sketch or line artBlack and white or centerlineClean, compact paths
Flat logoLimited color, 2 to 8 colorsGood after minor cleanup
Scanned signatureHigh threshold, noise filterUsable with smoothing
PhotographMany colors or grayscaleStylized, very heavy file
Halftone print scanDescreen first, then tracePoor without preprocessing
Choosing a tracing mode by source

Two output models exist. Outline tracing produces filled shapes along both edges of every stroke, while centerline tracing produces single open paths along the middle of thin lines, which suits plotters, engraving and embroidery where a tool follows the line.

Image tracing sits between pure raster editing and drawing from scratch. It is often confused with clipping paths and masking, which outline a subject to isolate it but leave the pixels inside as raster data.

The comparison below clarifies where tracing fits among neighboring techniques in graphic design.

TechniqueOutputTypical purpose
Automatic image tracingFull vector artworkFast conversion of simple images
Manual tracingHand-drawn vector pathsPrecise logo reconstruction
Clipping pathOne outline around raster pixelsIsolating a product photo
MaskingHidden or revealed raster areasNondestructive compositing
UpscalingLarger raster imageEnlarging photos without vectorizing
Tracing versus related techniques

Tools such as Adobe Illustrator, Affinity Designer and open-source tracers implement automatic tracing, and the result is commonly saved as SVG, EPS or PDF for further use in print design and on the web.

Cleaning up a traced result

A traced file is rarely final, because algorithms cannot judge design intent. A professional cleanup reduces anchor points, straightens lines that should be straight, restores perfect circles and aligns elements to a grid or to the original geometric construction.

  1. Prepare the source by increasing contrast, removing dust and scanning at 300 to 600 ppi.
  2. Trace with conservative settings and expand the result into editable paths.
  3. Delete stray shapes and merge fragments that belong to the same region.
  4. Simplify paths and rebuild key curves with fewer, well-placed nodes.
  5. Replace traced text with the matching typeface or redraw the lettering.

For logos, many designers treat the trace only as a reference layer and redraw the mark manually on top. This yields a file with clean geometry, minimal nodes and predictable behavior when it is scaled, cut or embroidered.

Limitations, risks and common mistakes

Tracing cannot invent detail that the source does not contain. A low-resolution or compressed source yields wobbly edges and artifacts that the algorithm faithfully converts into vector shapes, so input quality sets the ceiling.

The table below lists frequent problems, their causes and practical fixes.

SymptomLikely causeFix
Bumpy curvesToo high fidelity settingLower fidelity or smooth paths
Thousands of tiny shapesJPEG noise or gradientsClean source, reduce colors
Rounded corners on sharp logosCorner setting too lowRaise corners or redraw
Gaps between color areasAbutting shapes misalignedTrace with overlapping fills
Distorted letteringText traced as shapesReset with the original font
Common tracing problems

There is also a legal limit: tracing someone else’s artwork does not change who owns it. Converting a copyrighted image into vectors creates a derivative work, so designers should trace only material they own or are licensed to use.

In everyday language

A normal digital picture is a grid of tiny colored squares. If you enlarge it too much, the squares become visible and the edges look jagged. Image tracing redraws the picture as smooth outlines and shapes, like placing tracing paper over a drawing and copying it with a pen.

Once the picture is made of outlines, it can be printed on a business card or a billboard and stay sharp at every size. The catch is that a computer copies everything, including smudges, so a person usually tidies up the result.

Seen in the real world

A small bakery wants its logo printed on a delivery van, but the only file is a 200-pixel JPEG taken from an old website. A graphic designer runs an automatic trace with four colors and a noise setting of 10 pixels, which produces a rough vector version in seconds.

The trace contains more than 1,500 anchor points, uneven circles and lettering that no longer matches the original. The designer uses it as a guide, redraws the wheat symbol with about 60 nodes, rebuilds the circle precisely and resets the name in the original typeface.

The final SVG and PDF files scale cleanly from a 2-centimeter sticker to a 3-meter van wrap, and the bakery now has a master logo file for every future print job.