What is image tracing? Turning a bitmap into vector shapes

Published , by the PrintBlob team.

Image tracing is software that converts a raster image into vector paths by following the edges or colour boundaries it finds in the pixels. The result is shapes with mathematical curves, which scale to any size without softening, instead of a grid of pixels.

Customers send logos as small JPEGs and ask for a “vector”. Tracing is the usual way to get one, and knowing what it can and cannot do saves a lot of back and forth.

How it works

The Inkscape manual describes its Trace Bitmap tool as a way to convert a raster image into editable paths, and warns that anyone expecting a hundred per cent faithful copy will be disappointed. Tracing suits simple, high-contrast artwork. Its modes show the range of approaches:

  • Brightness cutoff makes a silhouette from dark shapes on a light background; the most common mode.
  • Edge detection traces only the contours of a shape.
  • Colour quantisation follows the borders between different colours, for images with several flat colours.
  • Centreline tracing reduces a shape to an open path, best for handwriting and line drawings.
  • Multiple scans gives more detail by stacking one object per scan or per colour, which is harder to edit.

The traced shapes land directly over the original, so the original has to be moved or hidden to see the result. The settings are adjusted with a live preview until the shapes look right.

What tracing cannot do

It cannot put back detail the image never held. A 200-pixel logo has soft edges, and the trace follows that softness as wobbly curves. A photograph traced to flat colours becomes a poster-like image with large areas of one colour and an unwieldy number of shapes. If you only need a larger raster file, tracing is the wrong tool; see upscaling.

After tracing, expect to clean up:

  1. Remove stray specks and tiny shapes.
  2. Straighten edges that should be straight, and round circles that should be round.
  3. Merge nearly identical colours into one fill.
  4. Check lines against the printer’s minimum line weight.
  5. Compare with the original at full size, side by side.

When a shop needs it

  • Vinyl cutting and heat transfer vinyl. A cutter follows vector outlines, so raster artwork must be traced first; our print-ready files guide says this suits simple shapes and text.
  • Screen printing. Printers prefer vector artwork or artwork with few flat colours, since it separates cleanly.
  • Embroidery. A specialist digitises artwork into stitches; a clean trace is a better starting point than a blurred bitmap.
  • DTG and DTF. A transparent PNG at the print size at 300 DPI is usually what is asked for; tracing is not needed.

Rights

Tracing someone else’s logo does not give you the right to print it. A customer who uploads a brand’s logo is still using that brand’s mark, however it was traced; see copyright and trademarks in customer designs.

In PrintBlob

PrintBlob does not trace images. Customers upload PNG, JPEG or WebP files, and the designer places them as they are. A customer’s photo stays the image they uploaded in the vector PDF and SVG, embedded as they uploaded it, so a vector file does not make a photo sharper. With PrintBlob Pro, the customer’s original image is also available to download from the order, so you can trace it yourself when an order needs it.

Sources