What is anti-aliasing? Smooth edges, and when to turn them off

Published , by the PrintBlob team.

Anti-aliasing is the smoothing of the stair-stepped edges that appear when a curve or diagonal is drawn with square pixels, done by giving pixels along the edge in-between shades. Without it, a circle looks like a staircase. With it, the edge looks smooth at normal size. It is why text on a screen looks clean, and it is also why a “clean” cut-out on a transparent background still carries a ring of half-transparent pixels.

What it does to pixels

Image editors describe the option plainly. GIMP’s manual says anti-aliasing is offered by only some selection tools and makes the selection boundary smoother, so the edge looks less jagged. Krita’s manual says it smooths along the direction of an edge and only where the edge is jagged, high-contrast. Feathering, by contrast, softens the boundary in all directions. The two are different: anti-aliasing is invisible at 100 per cent zoom and gives an edge one pixel of in-between shade; feathering is a blur that can be ten pixels wide (GIMP’s default feather radius is 10).

Over a coloured background the in-between pixel is a blend of the two colours. Over a transparent one it is the shape’s colour at partial opacity. That partial opacity is what a DTF or DTG printer sees.

Why print files care

Case Verdict
Edge smoothing one or two pixels wide on text and curves Normal; leave it. The DTF guide on this site and the DTF image checker both treat it as expected
A wide soft edge from feathering or a brush A semi-transparency problem; harden it
Cutting a background out with anti-aliasing on, against a light background The partial pixels hold light colour; see white halo
Cutting out a background with anti-aliasing off Hard, jagged edges, but no partial pixels; screenprinting.com’s DTF walkthrough uses the magic wand with anti-aliasing off for this reason

The trade-off is between smooth and exact. At the 300 pixels per inch that print files use, one pixel is about 0.085 mm (25.4 ÷ 300), so the steps of an unsmoothed edge are very small, and a hard edge can be acceptable on a print where a half-transparent fringe is not. That is a sum, not a printer’s rule, but it is why cleaning edges to solid usually costs little.

In software that draws vectors

Vector formats leave the smoothing to whatever draws them. The SVG specification’s shape-rendering property lets an author ask for speed, which may turn anti-aliasing off, or for crisp edges, which might turn it off for lines near the horizontal and vertical. Which it does is the renderer’s choice. When a vector file is turned into pixels (rasterising), the renderer decides how its edges are smoothed, and a printer’s software may do it differently from your editor.

In PrintBlob

The PNG PrintBlob makes of a printed side (the front’s in the free plugin, every other side’s with PrintBlob Pro) is drawn in the customer’s browser at 300 DPI, so edges of text and shapes have the usual one-pixel smoothing; the vector PDF and SVG have no pixels of their own to smooth. The DTF image checker is built around this: half-transparent pixels within two pixels of both a solid and a clear pixel are treated as smoothing and left out of its count.

Sources