Vectorr

Inkscape Trace Bitmap: The Free Vectorizer, Explained

Inkscape exposes Potrace parameters Illustrator hides: speckle suppression, corner smoothing, and brightness cutoff thresholds. Choose brightness mode for logos, edge detection for photos, color quantization for flat art. Script Potrace from the command line for batch processing.

November 5, 2026 · 6 min read

Inkscape's Trace Bitmap dialog exposes the Potrace engine in a more transparent way than most vector editors. Where Illustrator hides the connection between slider values and path geometry, Inkscape lets you select edge detection methods, speckle suppression sizes, and smoothing thresholds by exact number. This direct control matters when you need repeatable results across a batch of files or when a logo's success depends on preserving one small feature while simplifying everything else.

This guide walks through the Trace Bitmap interface, explains each detection mode and why you would choose it, and shows how to script Potrace from the command line for automated workflows.

Opening the Trace Bitmap Dialog

Import your raster image into Inkscape with File → Import and embed it when prompted (linking prevents tracing). Select the image and open Path → Trace Bitmap. The dialog offers eight detection modes grouped into three categories: Single Scan (one path output), Multiple Scans (stacked color layers), and advanced modes for edges, colors, and grayscale.

Preview updates happen automatically in Inkscape 1.2+. In earlier versions, click the Update button after changing settings. The preview is low-resolution; the final trace will be sharper.

Understanding Detection Modes

The eight modes use different strategies to decide where vector paths should go. Brightness cutoff creates hard black/white splits. Edge detection follows luminance gradients. Color quantization groups similar pixels before tracing. Choosing the right mode depends on whether your source has clean edges, smooth gradients, or multiple flat colors.

Detection ModeBest ForOutput Behavior
Brightness cutoffHigh-contrast line art, logosSingle black shape; adjust threshold for faint or dark sources
Edge detectionPhotos, paintings, scanned sketchesOutlines regions of contrast; produces many small paths
Color quantizationFlat illustrations, pixel artOne layer per color; number of scans = number of colors
AutotraceMixed artworkCombination of edge and brightness; unpredictable but fast
Centerline tracingSingle-pixel line art, diagramsStrokes instead of filled shapes; works on skeletonized input

Single Scan Modes Explained

Single scan modes produce one set of paths. They are fast and predictable, ideal for logos and simple line art.

Brightness Cutoff (Threshold)

Brightness cutoff splits the image at a single luminance value. Pixels darker than the threshold become black paths; lighter pixels are ignored. The threshold slider ranges from 0.0 (everything is white) to 1.0 (everything is black). A value of 0.45–0.50 works for clean scans. For faded or low-contrast sources, lower it to 0.30–0.40.

Enable "Invert image" if your source has black lines on white but you want white shapes on black output, or vice versa. This is faster than adjusting the threshold to match inverted luminance.

Edge Detection

Edge detection traces boundaries where luminance changes rapidly. It works well on photographs and paintings where you want outlines rather than solid fills. The threshold controls sensitivity: lower values detect subtle edges (more paths), higher values only trace strong contrasts (fewer paths).

Edge detection produces many small disconnected paths. Expect to manually delete unwanted regions and combine shapes afterward.

Autotrace

Autotrace is a hybrid method that attempts to guess the best strategy. It works adequately on simple images but offers no tuning beyond a single threshold. For predictable results, choose brightness cutoff or edge detection explicitly.

Multiple Scans for Color Artwork

Multiple scan modes trace once per color (or gray level), stacking the results as separate path groups. Each group represents one luminance or color band.

Brightness Steps (Grayscale)

Brightness steps divides the luminance range into N equal bands and traces each as a separate layer. A setting of 5 scans produces five grayscale regions from near-black to near-white. The output resembles a posterized version of the original image.

Use this mode for grayscale photos you want as layered vector art. Set scans to 4–8 for smooth gradation. Above 12, file size explodes with minimal visual improvement.

Colors

Color quantization reduces the image to N colors and traces each. The algorithm clusters similar hues, so a logo with red, blue, and white becomes three layers even if the red has slight gradation. Set the number of scans equal to the number of distinct colors in your source.

Check "Smooth" and "Stack scans" to produce overlapping layers that approximate the original color blend. Uncheck "Stack" if you want separate, non-overlapping regions for manual recoloring.

Advanced Parameters

Below the detection mode, Inkscape exposes four advanced controls that map directly to Potrace parameters.

Speckle Suppression

Speckle suppression removes small noise regions below a pixel-area threshold. A value of 2 means any region smaller than 2×2 pixels is deleted. For scanned line art with dust or JPEG artifacts, set this to 4–8. For clean digital input, leave it at 0–2 to avoid losing fine detail.

Smooth Corners

Smooth corners controls curve optimization. Higher values (1.0–1.33) produce smoother, more rounded paths with fewer nodes. Lower values (0.0–0.5) preserve sharp angles and small features but increase node count. A setting of 1.0 is a practical default for logos.

Optimize

Optimize sets the tolerance for curve fitting. A value of 0.2 is the Potrace default and works for most artwork. Increase to 0.4–0.6 for aggressive simplification (fewer nodes, looser fit). Decrease to 0.1 for tighter path adherence (more nodes, exact fit).

Scripting Potrace from the Command Line

For batch processing, bypass Inkscape and call Potrace directly. Install it via your package manager (apt, brew, or download from potrace.sourceforge.net) and run:

potrace input.bmp -s -o output.svg

The -s flag outputs SVG. The -o flag sets the output filename. Add -t 0.4 to set the brightness threshold, --turdsize 5 for speckle suppression, and --alphamax 1.0 for corner smoothing.

Batch-process an entire directory with:

for f in *.png; do convert "$f" bmp:- | potrace -s -o "${f%.png}.svg"; done

This converts each PNG to BMP on the fly (Potrace accepts BMP, PBM, PGM, PPM input) and outputs SVG with the same base name.

Cleaning Up Traced Paths

After tracing, the result typically needs cleanup. Ungroup all layers (Object → Ungroup, repeat until nothing ungroups). Select overlapping paths and use Path → Union to merge them into single shapes. Delete unwanted background regions.

Simplify paths with Path → Simplify (Ctrl+L). This reduces node count by 20–50% with minimal shape change. Run it twice if the first pass leaves jagged curves.

For logos that need exact geometry, manually adjust anchor points with the Node tool (N). Convert corner nodes to smooth curves where appropriate, and delete unnecessary mid-curve nodes by selecting them and pressing Delete.

Comparing Inkscape to Other Tracers

Inkscape Trace Bitmap is Potrace with a graphical interface. The quality matches command-line Potrace exactly because it calls the same library. The advantage is immediate preview and parameter adjustment without writing shell commands.

Illustrator Image Trace uses a proprietary algorithm that handles color artwork more gracefully but offers less control over corner behavior and path simplification. For simple logos, both perform comparably. For technical drawings with precise angles, Inkscape's access to Potrace's turnpolicy and corner settings produces cleaner output.

Vector Magic (vectormagic.com) is a commercial web tracer optimized for ease of use. It auto-detects settings and produces excellent results for photographs and complex gradients. The free tier allows preview; conversion requires payment. For occasional high-quality traces where manual tuning is not feasible, Vector Magic is worth the cost.

When Tracing Fails

Three common failures: excessive node counts, open paths where you expected closed shapes, and lost fine detail. Each has a direct fix.

Excessive Nodes

If your traced logo has thousands of nodes, lower the Optimize value to 0.3–0.4 and increase Smooth Corners to 1.2–1.33. If that doesn't help, simplify the source image first: open it in GIMP, apply Filters → Enhance → Sharpen, then Filters → Blur → Median with a 1-pixel radius to remove anti-aliasing halos.

Open Paths

Gaps appear when pixel edges don't form closed loops. Check "Invert image" in Trace Bitmap to swap foreground/background treatment, or clean the scan in GIMP: use Colors → Levels to make whites pure (255) and blacks solid (0). Run Colors → Threshold and adjust the range until lines are continuous.

Lost Detail

Small features vanish when speckle suppression is too aggressive or source resolution is too low. Set speckle suppression to 0–2, and ensure the source is at least 300 PPI. Scale the image up in GIMP with interpolation set to "None (Fastest)" to preserve hard edges, then trace the upscaled version.

Frequently asked questions

What is the difference between brightness cutoff and edge detection in Inkscape Trace Bitmap?

Brightness cutoff splits pixels at a single luminance threshold, producing one black shape for logos and line art. Edge detection traces boundaries where luminance changes rapidly, producing outlines useful for photos and paintings. Edge detection creates many small paths; brightness cutoff creates solid filled regions.

How do I reduce node count in Inkscape traced paths?

After tracing, use Path → Simplify (Ctrl+L) to reduce nodes by 20–50% with minimal shape change. Before tracing, increase the Optimize value to 0.4–0.6 and set Smooth Corners to 1.2–1.33. Run Simplify twice if the first pass leaves jagged curves.

Can I batch-process Trace Bitmap on multiple files?

Inkscape does not expose Trace Bitmap in its command-line interface, but you can call Potrace directly. Install Potrace and run a shell loop: <code>for f in *.png; do convert "$f" bmp:- | potrace -s -o "${f%.png}.svg"; done</code> to process an entire directory.

Why does my traced logo have gaps and open paths?

Gaps appear when pixel edges don't form closed loops in the source. Clean the scan first: open it in GIMP, use Colors → Levels to make backgrounds pure white (255) and lines solid black (0). Check "Invert image" in Trace Bitmap if needed.

Is Inkscape Trace Bitmap as good as Illustrator Image Trace?

For line art and technical drawings, Inkscape offers finer control over corners and smoothing because it exposes Potrace parameters directly. For complex color artwork, both perform similarly. Inkscape is free and better for scripted batch workflows; Illustrator integrates with Adobe Creative Cloud.

Sources

Convert files for this workflow

Try it on your own file

Drop in an image or an SVG and see the result before you pay. No signup is required to preview.