Skip to content
Blog

Dithering, explained with one photo

One dog photo run through nine dithering methods, from threshold to Jarvis to halftone, with how each one works and which to pick for your material.

A laser engraving a photo has a problem. The photo has hundreds of shades of grey, and the laser has two: fire, or don't. Dithering is how you get from one to the other. It turns each shade into a pattern of on and off dots whose density your eye averages back into grey.

There are many ways to place those dots, and they look very different on the material. The clearest way to see the difference is to run one photo through all of them. Here is the photo.

Close crop of a golden retriever's face: two dark eyes, a dark nose, and light golden fur with fine whiskers
The source: a close crop of a golden retriever. Light fur, fine whiskers, dark eyes and nose, and a lot of subtle midtones in between.

Every image below is the same crop, dithered by Etch's engine and enlarged so you can see individual dots. Black is where the laser fires. On wood, leather or paper the black dots become dark burns; on slate or anodized aluminium the file is inverted first, but the dots are placed the same way.

Threshold: one cutoff

The simplest method. Pick a cutoff, usually 50% grey. Anything darker fires, anything lighter does not.

The dog photo reduced to solid black and white shapes with no grey tones
Threshold. The midtones of the fur are gone: each area is either solid black or bare.

All the subtle fur tones fall on one side of the line or the other, so the face turns into flat shapes. Threshold is the wrong tool for photos and exactly the right tool for line art, logos and text, where you want clean edges and no stray dots.

Ordered dithering: a threshold that changes from pixel to pixel

Ordered dithering, published by Bryce Bayer in 1973, fixes threshold's problem with a simple idea. Instead of one cutoff for the whole image, it uses a small grid of different cutoffs, repeated like tiles across the picture. Etch uses an 8 by 8 Bayer matrix: 64 cutoffs spread evenly from almost white to almost black, arranged so that each new dot added as the tone darkens lands as far as possible from the ones already on.

A 30% grey area fires on every pixel whose cutoff is below 30%, which is about 19 of every 64 pixels, in the same positions in every tile.

The dog photo dithered into a regular cross-hatched grid pattern of dots
Ordered (Bayer). Tones are smooth, but you can see the regular crosshatch grid, especially in the even midtones of the fur.

The result is very predictable: a given grey always becomes the same pattern. You can see the grid, which some people like and some do not. That regularity is an advantage on uneven or textured surfaces like glass and stone, where random dot placement can look blotchy. Etch's glass preset uses it.

Error diffusion: keep track of what you got wrong

Error diffusion is the family most people mean when they say "dithering", and it is the default for most laser photo work.

It goes through the image one pixel at a time, row by row. At each pixel it makes the best on-or-off decision it can, then measures how wrong that decision was and passes the error on to neighbouring pixels it has not reached yet.

A worked example. Take a flat area of 30% grey:

  1. Pixel 1 is 30%. That is below half, so it stays off. It was supposed to be 30% dark and it is 0%, so 30% of darkness is owed.
  2. That 30% is split among the unvisited neighbours. Pixel 2 gets a share and becomes darker than 30%.
  3. Still below half: off. More darkness is owed, and it passes on again.
  4. Within a few pixels the owed darkness pushes one past half, and it fires. Firing a full dot overshoots, so now the error is negative, and the next few pixels stay off.

Over any patch, the number of dots that fire matches the tone almost exactly, and the dots end up scattered rather than gridded. The methods in this family differ only in which neighbours get the error and how much each one gets.

Etch processes rows in a serpentine order, left to right and then right to left, alternating. Scanning every row in the same direction lets the error drift sideways and draws faint diagonal streaks; alternating cancels the drift.

Floyd-Steinberg (1976)

The original, by Robert Floyd and Louis Steinberg. It spreads the error to just four neighbours. In the diagram, X is the current pixel and the numbers are sixteenths of the error.

        X   7
    3   5   1        (sixteenths)
The dog photo dithered with fine, scattered dots
Floyd-Steinberg. Fine, crisp grain. In flat midtones the dots settle into small, regular checkerboard-like patches.

It is fast and sharp, with very fine grain. Because the error only travels a short distance, it can form little repeating structures in smooth areas. On paper that is fine. On wood, where every dot spreads, the fine grain can read as busy noise. Etch's paper preset uses it.

Jarvis, Judice and Ninke (1976)

Published the same year, it spreads the error over twelve neighbours across three rows, in forty-eighths.

            X   7   5
    3   5   7   5   3
    1   3   5   3   1        (forty-eighths)
The dog photo dithered with smooth, evenly scattered dots
Jarvis. Smoother midtones with fewer artifacts. The fur reads as soft texture.

Spreading the error further smooths out the patterns Floyd-Steinberg can make. The grain is slightly coarser, and fine edges are a little softer. For photos on most materials this is the safe choice, and it is Etch's default for wood, slate, tile, granite and acrylic.

Stucki (1981)

Peter Stucki's variation uses the same twelve neighbours as Jarvis with different weights, in forty-seconds.

            X   8   4
    2   4   8   4   2
    1   2   4   2   1        (forty-seconds)
The dog photo dithered with smooth dots and slightly crisper edges
Stucki. Very close to Jarvis. By design it keeps edges, like the rims of the eyes and nose, a touch crisper.

More of the error stays close to the pixel, so edges come out a little crisper than Jarvis while the midtones stay smooth. Etch uses it for anodized aluminium and leather. In practice, Jarvis and Stucki are close enough that the material and the line density matter far more than the choice between them.

Sierra

Frankie Sierra's filters came later. Etch uses the three-row version, which spreads the error over ten neighbours in thirty-seconds.

            X   5   3
    2   4   5   4   2
        2   3   2            (thirty-seconds)
The dog photo dithered with a soft, even grain
Sierra. A soft, even grain somewhere between Floyd-Steinberg and Jarvis.

It sits between Floyd-Steinberg and Jarvis: nearly as smooth as Jarvis, slightly finer. A good alternative when Jarvis feels a touch too soft.

Atkinson

Bill Atkinson wrote this one at Apple for the original Macintosh, whose screen could only show black or white pixels. It has an unusual trick: it passes on only six eighths of the error and throws the rest away.

        X   1   1
    1   1   1
        1                (eighths, two eighths discarded)
The dog photo dithered with high contrast: bright clean highlights and solid dark areas
Atkinson. Highlights clip to clean white and shadows to solid black. Punchy and graphic, with less midtone detail.

Because some error is discarded, small amounts of tone near white or near black never add up to a dot. Bright fur goes clean white, dark areas go solid, and the image looks high contrast and graphic. That loses some midtone detail, but it is useful on materials with spread and texture, like cork, where faint scattered dots in the highlights would only look like noise. Etch's cork preset uses it.

Halftone: dots that grow

Halftone is how newspapers print photos. Instead of scattering single dots, it divides the image into a regular grid of cells and puts one round dot in each cell. Light areas get small dots; dark areas get big ones, until they merge into a solid with small light holes.

The dog photo rendered as a regular grid of round dots at 45 degrees, larger in dark areas
Halftone. Round dots on a 45 degree screen, about 50 cells per inch. Clearly a dot pattern up close, smooth from a distance.

Etch's halftone sets the screen at 45 degrees, the classic angle because the eye notices a diagonal pattern less than a horizontal or vertical one, and at about 50 cells per inch whatever the laser's line density. At 254 lines per inch, that is about 5 by 5 laser pixels per cell.

Clustered dots have a practical advantage on a laser. A mark spreads at its edges, and a round cluster has much less edge for its size than the same number of scattered dots. That makes halftone more forgiving on materials where burns spread a lot. The cost is resolution: fine detail like whiskers falls between the cells. Why your photo engravings come out muddy has the dot-spread math.

Grayscale: no dots at all

The last option is not dithering. The image keeps its grey levels, and the laser varies its power pixel by pixel: dark pixels get more power, light ones less.

The dog photo as a smooth grayscale image with no dot pattern
Grayscale. No dots: each pixel's grey value becomes a power level.

This works when the material responds to power smoothly. On wood with a CO2 laser, more power means a deeper cut, which is how sculpted, 3D-looking engravings are made, and some CO2 and fiber setups handle grayscale well on particular materials. On most diode work, and on most materials that mark light (slate, anodized aluminium, glass), the response is closer to on or off: below some power nothing happens, above it you get a full mark. Grayscale then comes out patchy, and a dither gives better tone.

If you send a grayscale file, use your laser software's grayscale mode, not its pass-through mode, and set its minimum and maximum power.

Which one to use

UseGood choiceWhy
Portraits on wood, slate, tile, graniteJarvisSmooth midtones, no visible pattern
Anodized aluminium, leatherStuckiSmooth with crisper edges
Paper, cardFloyd-SteinbergFine grain where dots barely spread
Cork, rough or very spready materialsAtkinson or HalftoneClean highlights, clusters resist spread
Glass, stone with textureOrderedPredictable, even pattern
A deliberate print or pop-art lookHalftoneVisible dot screen
Logos, text, line artThresholdClean edges, no stray dots
Deep or 3D-style engraving with power controlGrayscalePower follows the tone

These are starting points. The material, the line density and the power matter more than the choice between two error diffusion methods, so settle those first.

Two rules whichever you pick

Dither once. If your file is already dithered, set your laser software to the mode that passes the image through unchanged. In LightBurn that is Passthrough. Running a second dither on top of the first adds noise and can create patterns neither would make alone. See the LightBurn guide and the xTool Studio guide.

Dither at the laser's line density. Every one of these methods places dots on a grid of pixels, and that grid only survives if one pixel becomes one scan line. If the image is resampled afterwards (by scaling it, or by engraving it at a different lines per inch than its DPI), the careful placement is lost. Choosing lines per inch for your laser explains how to pick that number.

To compare methods on your own machine, engrave the same 25 mm crop with two or three of them side by side on scrap of the material you will use. The differences you see on screen at this zoom are often smaller on the material, and sometimes larger. Only the scrap can tell you which.

Keep reading