Using GEGL Median Blur for Painting Cleanup in GIMP

The GEGL Median Blur filter in GIMP is an essential tool for digital artists seeking to clean up noisy brushwork, remove digital artifacts, and smooth color transitions without sacrificing the structural sharpness of their artwork. Unlike traditional blurring methods that feather and soften every pixel indiscriminately, Median Blur evaluates neighboring pixel values and replaces outliers with the median value. This makes it an indispensable cleanup filter for refining scanned sketches, blending rough digital paint strokes, and maintaining crisp, well-defined edges throughout an illustration.

Edge-Preserving Smoothing

The primary advantage of the GEGL Median Blur over Gaussian Blur is its ability to preserve high-contrast edges. Gaussian Blur averages all surrounding pixels, which creates a soft, unfocused halo around forms and muddies clean line art. In contrast, Median Blur identifies extreme light and dark outliers and eliminates them while keeping distinct borders intact. This allows artists to smooth out internal color banding or gritty textures within a painted shape while retaining sharp silhouettes and outlines.

Artifact and Grain Removal

Digital paintings, especially those incorporating textured brushes or imported traditional scans, often suffer from unwanted digital grain, compression artifacts, or speckling. Median Blur excels at eliminating these isolated inconsistencies. Because solitary stray marks and dust spots represent statistical outliers in pixel data, the median calculation effectively erases them and seamlessly fills the void with the surrounding baseline color.

Blending Brushwork for Painterly Finishes

During the rendering phase, digital brushes can leave behind jagged transitions, harsh pressure steps, or unintentional texture build-up. Applying a subtle Median Blur softens these abrupt tonal steps, simulating the natural blending of wet media without turning the entire layer into an unreadable smear. Artists frequently duplicate a paint layer, apply Median Blur with a low radius, and use layer masks to selectively paint in smooth surfaces on skin, clothing, or backgrounds.

Key Filter Settings for Cleanup

To access the tool in GIMP, navigate to Filters > Blur > Median Blur. When using the filter for digital painting cleanup, two main settings dictate the result:

  • Radius: Controls the size of the pixel neighborhood analyzed. A small radius (1 to 5 pixels) cleans fine noise and minor brush stepping, while a larger radius produces stylized, simplified color blocks.
  • Percentile: Adjusts the brightness weighting of the median calculation. The default 50% provides balanced cleanup, while shifting lower or higher selectively erodes highlights or shadows.