Overlay vs Hard Light: GIMP Blend Modes Explained

In GIMP, the Overlay and Hard Light blend modes are mathematical inverses of each other, designed to combine Multiply and Screen operations to increase contrast. The fundamental difference lies in which layer determines whether the pixels are darkened or lightened: Overlay evaluates the luminance of the lower base layer, preserving its original tonal structure, whereas Hard Light evaluates the luminance of the upper blend layer, allowing the top layer to dictate the resulting illumination.

The Underlying Mathematics

Both blend modes rely on the same dual-formula mechanism, splitting the calculation at the 50% gray threshold (a value of 0.5 on a normalized scale from 0.0 to 1.0). When values fall below 0.5, a multiplication formula is applied to darken the result. When values equal or exceed 0.5, a screen formula is applied to lighten the result:

  • Darken (Multiply-like): \(2 \times \text{Base} \times \text{Blend}\)
  • Lighten (Screen-like): \(1 - 2 \times (1 - \text{Base}) \times (1 - \text{Blend})\)

The distinction between the two modes is entirely defined by which layer is fed into the conditional threshold test.

Why Overlay Prioritizes the Base Layer

Overlay uses the base layer's pixel values to decide whether to multiply or screen:

  • If the base layer pixel is darker than 50% gray, GIMP applies the multiply formula.
  • If the base layer pixel is lighter than 50% gray, GIMP applies the screen formula.

Because the branching condition is tied directly to the base image, the base layer's highlights and shadows are mapped and protected. The blend layer modifies color and contrast, but it cannot override the base layer's fundamental light distribution. Dark areas on the base remain dark, bright areas remain bright, and pure black or pure white on the base layer cannot be shifted by the blend layer.

Why Hard Light Favors the Blend Layer

Hard Light swaps the conditional role to the active blend layer:

  • If the blend layer pixel is darker than 50% gray, GIMP applies the multiply formula.
  • If the blend layer pixel is lighter than 50% gray, GIMP applies the screen formula.

Under Hard Light, the blend layer functions like a harsh spotlight shining down onto the base. A dark shape on the blend layer forces underlying base pixels to multiply and darken, while a bright shape forces them to screen and lighten. If the blend layer contains pure black or pure white, the base layer is completely overwritten with black or white.

The Mathematical Symmetry

In computational terms, Hard Light is simply Overlay with the layer inputs reversed:

\[\text{Hard Light}(\text{Base}, \text{Blend}) = \text{Overlay}(\text{Blend}, \text{Base})\]

Applying Hard Light to a top layer produces the exact same pixel values as placing that layer underneath and setting the top layer to Overlay. GIMP retains both modes to allow artists to choose whether the existing background (Overlay) or the applied texture/brushwork (Hard Light) acts as the dominant light source without having to reorganize their layer stack.