Why 50% Gray Creates Semi-Transparent Selections in GIMP

Painting with 50% gray in GIMP's Quick Mask mode creates a semi-transparent selection because Quick Mask operates as an 8-bit grayscale alpha channel where luminance values directly dictate selection opacity. Rather than functioning as a strictly binary system of selected versus unselected pixels, Quick Mask translates tonal brightness into varying degrees of selection strength, making mid-tone gray the exact midpoint of partial selection.

The Grayscale Mechanics of Quick Mask

When Quick Mask is activated, GIMP temporarily converts your current selection into an 8-bit grayscale channel overlaying the canvas. In this mode, every pixel corresponds to a value ranging from 0 to 255:

  • Pure White (Value 255): Represents a 100% full selection. Any edits made through this mask will apply at full intensity.
  • Pure Black (Value 0): Represents 0% selection (completely unselected). Edits are blocked entirely.
  • Intermediate Grays (Values 1–254): Represent proportional levels of partial selection.

A 50% neutral gray carries an RGB value of 128, 128, 128. Because 128 is precisely half of the 255 maximum, GIMP registers this painted area as a 50% selection.

How Semi-Transparent Selections Behave

When you exit Quick Mask to return to normal editing mode, GIMP translates the grayscale values back into standard selection data. This manifests in two distinct ways:

  1. The Selection Boundary (Marching Ants): GIMP’s marching ants boundary only displays along the 50% threshold. Pixels selected at higher than 50% sit inside the boundary, while pixels lower than 50% sit outside. Because 50% gray is right on the dividing line, the boundary line will trace the exact perimeter of the painted stroke, but it will not indicate the partial opacity visually.
  2. Action Opacity: Modifying a 50% selection applies changes at half strength. If you fill the selection with solid color, paint over it, or adjust its levels, GIMP applies only 50% of that effect, leaving the underlying layer 50% visible. Similarly, pressing the Delete key will reduce the opacity of existing pixels by half rather than erasing them completely.

Purpose of Partial Selections

This behavior is intentional and fundamental to digital image editing. By supporting shades of gray, Quick Mask allows users to create soft transitions, feather edges manually, smoothly blend multi-image composites, and apply graduated adjustments without harsh or jagged pixel borders.