Remove Yellow Stains from Documents in GIMP

Aging historic legal documents often suffer from severe yellowing, foxing, and oxidation that obscure critical handwriting, signatures, and printed text. Utilizing the Channel Mixer tool in GIMP offers a precise method to eliminate these yellow aging stains by isolating the color channels that hold text data while discarding the channels where paper decay is most pronounced. This guide outlines the exact, step-by-step workflow required to isolate the contrast between ink and paper, neutralize discoloration, and produce a high-contrast, archival-grade digital restoration.

1. Digitize and Prepare the Document

Begin by importing a high-resolution, uncompressed scan (minimum 300 to 600 DPI in full 24-bit RGB color) into GIMP. Do not scan the original in grayscale; retaining the original RGB color data is necessary for the Channel Mixer to differentiate between the yellow stains and the ink. Once opened:

  1. Navigate to the Layers panel.
  2. Right-click the background layer and select Duplicate Layer to ensure all edits are performed non-destructively.
  3. Rename this new layer Restoration Working Layer.

2. Inspect the Color Channels

Yellow stains absorb blue light and reflect red and green light. Consequently:

  • The Blue Channel displays the yellow stains as dark patches, blending them directly into the dark ink.
  • The Red Channel shows the yellowed paper as very bright or near-white, creating high contrast between the paper and the darker ink.
  • The Green Channel provides a balanced midrange that retains stroke weight and fine penmanship details.

Understanding this distribution allows you to weight the channels appropriately in the next step.

3. Apply the Channel Mixer Adjustment

With the working layer selected, open the tool by navigating to Colors > Components > Channel Mixer (or use the GEGL Mono Mixer in newer GIMP versions):

  1. Check the Monochrome box. This forces the output into a grayscale image based on custom percentages of the red, green, and blue input channels.
  2. Set the Red channel slider to a high positive value, typically between +80% and +120%. Because yellow contains high red values, this pushes the yellowed background directly toward pure white.
  3. Set the Green channel slider between +10% and +30% to preserve intermediate ink densities, pencil marks, or faint stamp impressions.
  4. Set the Blue channel slider to 0% or slightly negative (e.g., -10% to -20%). Minimizing the blue channel completely eliminates the dark tone of yellow stains.
  5. Ensure the sum of the channel values remains around 100% to prevent clipping midtones, adjusting slightly until the background appears uniformly bright and the text remains dark and sharp.
  6. Click OK to apply the mix.

4. Fine-Tune Levels and Clean Background Residuals

Residual noise or faint paper grain can be neutralized using the Levels tool without compromising letterforms:

  1. Go to Colors > Levels.
  2. Select the White Point Eyedropper tool and click on the darkest remaining patch of aging stain on the document background. This remaps that shade to pure white across the entire layer.
  3. Slightly move the Black Input Slider to the right to deepen faded ink and restore solid black densities to text strokes.
  4. Move the Middle (Gamma) Slider slightly to the right or left to fine-tune legibility and prevent delicate pen strokes from breaking apart.
  5. Click OK.

5. Final Touch-Ups and Archival Export

Inspect the document at 100% zoom to verify that critical legal notations, stamps, or marginalia were not accidentally clipped:

  1. If specific non-yellow elements (such as red wax seals or blue registry stamps) need preservation, add a layer mask to the restoration layer and paint with black over those regions to reveal the original color from the base layer below.
  2. Flatten the image if necessary via Image > Flatten Image.
  3. Export the restored file via File > Export As using a lossless format such as TIFF or PDF to preserve archival fidelity.