Ordered vs Error Diffusion Dithering in GIFs

Dithering is a technique used to simulate a broad spectrum of colors within the strict 256-color limit of the GIF format. When converting full-color video or imagery to GIF, the choice between ordered dithering and error diffusion dithering dramatically shapes the final image's texture, clarity, and motion stability. While ordered dithering produces rigid, repetitive, grid-like patterns, error diffusion produces a softer, more organic, grain-like appearance.

Visual Characteristics of Ordered Dithering

Ordered dithering relies on a fixed, repeating mathematical threshold matrix (such as the Bayer matrix) applied across the pixels.

Visual Characteristics of Error Diffusion Dithering

Error diffusion algorithms—most notably Floyd-Steinberg—work dynamically by calculating the quantization error (the difference between the original color and the chosen palette color) and pushing that error forward to adjacent, unprocessed pixels.

Summary of Visual Differences