sRGB Gamut Clipping (2021)

When working with images and RGB color spaces, it’s common to encounter values outside the acceptable range of 0.0 to 1.0 or 0 to 255. These out-of-range colors need adjustment before encoding or displaying. The issue of dealing with colors beyond the gamut has long been researched, leading to techniques like tone mapping and gamut mapping. This article focuses on creating a practical alternative to clamping sRGB values, specifically using gamut clipping in the sRGB color space. By projecting colors outside the gamut onto valid colors with straight lines in the perceptual color space, this method aims to avoid distortion and artifacts efficiently and simply.

https://bottosson.github.io/posts/gamutclipping/

To top