Legacy vs Linear Blend Modes in Modern GIMP

In modern versions of GIMP, users can choose between Legacy blend modes and modern Linear composite modes to control how layer pixels interact. While Legacy modes retain the historical, gamma-corrected mathematics of GIMP 2.8 and traditional digital art workflows, modern Linear modes process color and light using physically accurate, linear-light mathematics. This fundamental difference in color space computation drastically changes edge softness, gradient transitions, and light behavior across mixed layers.

Gamma-Corrected vs. Linear-Light Math

The primary technical difference lies in the color space where the math takes place. Legacy blend modes perform calculations directly on gamma-encoded values (typically non-linear sRGB). Because human vision perceives brightness logarithmically, digital images apply a gamma curve to store more shadow detail. When you add, multiply, or divide these gamma-encoded numbers directly—as Legacy modes do—the mathematical operations do not match how light behaves in the physical world.

Modern Linear composite modes decode the gamma curve before blending, performing all arithmetic in a linear space where a numerical value of 1.0 represents exactly twice as much light as 0.5. Once the blending calculations are complete, GIMP transforms the image back into the appropriate color space for display.

Visual Differences and Artifacts

The shift to linear blending resolves several common visual artifacts inherent to legacy software:

  • Dark Borders on Transitions: When blending saturated complementary colors (such as red and cyan, or blue and yellow) using Legacy modes, a muddy, dark gray fringe often appears along the transition. Linear modes mix the colors smoothly without darkening the intermediate boundary.
  • Light and Glow Behavior: Additive modes like Addition, Screen, and Lighten behave much more intensely and naturally in Linear mode, replicating the way physical light sources overlap and illuminate scenes. Legacy modes often look clipped, unnatural, or unexpectedly dull.
  • Blur and Soft Edges: Anti-aliased edges and soft-brush strokes maintain their intended luminosity in Linear mode. In Legacy mode, semi-transparent edges often look prematurely dark or dirty against bright backgrounds.

Why Legacy Modes Still Exist

Despite the optical correctness of Linear blending, Legacy modes remain a permanent feature in GIMP for two key reasons:

  1. Backward Compatibility: Opening an older .xcf project created in GIMP 2.8 or earlier requires Legacy modes to ensure the artwork renders identically to how it was originally designed.
  2. Artistic Familiarity: Many digital artists grew up using gamma-space blending in programs like older versions of Photoshop or legacy GIMP. Certain blend modes—particularly Multiply and Overlay—have an aggressive contrast curve in gamma space that artists frequently rely on for stylization, shading, and texture mapping.

How to Toggle Between Modes

Modern GIMP allows you to switch between these engines at the layer level. At the top of the Layers dialog, next to the Blend Mode dropdown, is a small menu (often represented by an icon indicating composite space) where you can set the Composite Mode or choose the Legacy mode group directly from the main Mode dropdown list.