Fix Purple Fringing in GIMP With Color Masks
High-contrast backlit tree branches frequently suffer from purple fringing, a form of chromatic aberration caused by lens dispersion and sensor blooming. This guide outlines the precise steps and tool settings required in GIMP to isolate the affected edges using a selection mask and neutralize magenta artifacts using the Color Balance tool without altering the surrounding sky or natural foliage.
Step 1: Duplicate the Layer and Isolate the Fringe
- Open your image in GIMP.
- In the Layers dialog, right-click the base layer and select Duplicate Layer. Name this layer "Fringe Correction."
- Choose the Select by Color Tool
(
Shift + O) from the toolbox. - In the Tool Options panel, set:
- Threshold: Between
15.0and25.0(adjust based on the contrast of the purple fringe). - Antialiasing: Checked.
- Select transparent areas: Unchecked.
- Threshold: Between
- Click on the most prominent purple fringe along a backlit branch to select the chromatic aberration across the image.
- Soften the edge transitions by going to Select >
Feather and setting the radius to
1.5or2.0pixels. - Right-click the "Fringe Correction" layer, choose Add Layer Mask, select Selection, and click Add.
- Go to Select > None
(
Ctrl + Shift + A) to clear the active marching ants.
Step 2: Configure the Color Balance Settings
Click on the layer thumbnail (not the mask thumbnail) of the "Fringe Correction" layer, then navigate to Colors > Color Balance. Apply the following adjustments:
- Preserve Luminosity: Check this box to prevent the edges from visibly darkening or brightening.
Midtones (Primary Adjustment)
- Cyan - Red:
0to-10(slight shift toward Cyan). - Magenta - Green:
+30to+60(shifts directly toward Green to counteract the primary magenta cast). - Yellow - Blue:
-20to-45(shifts toward Yellow to eliminate secondary blue/violet halos).
Highlights (For Sky Bleed)
Select the Highlights radio button if the purple cast bleeds into the bright sky background:
- Magenta - Green:
+20to+40 - Yellow - Blue:
-15to-30
Step 3: Fine-Tuning the Correction
- Toggle the visibility of the "Fringe Correction" layer using the eye icon to verify that the purple fringe turns into a neutral, natural branch tone.
- If the correction introduces a green halo into non-fringed areas,
select the Layer Mask thumbnail, select a soft black
brush (
B) set to30%opacity, and paint over the areas you wish to protect. - If the corrected edges appear slightly oversaturated, lower the
opacity of the "Fringe Correction" layer to around
85%–90%for a seamless blend.