Gamma correction is a power-law transformation that maps input luminance to output luminance with an exponent γ. In simple terms, Vout = Vin^γ, often with a scaling factor, to achieve perceptually uniform brightness steps and efficient encoding of tonal information. This article synthesizes the provided draft to offer a coherent, detailed guide focused on gamma correction in Photoshop and its broader context.
What gamma correction does to an image
The effect of gamma correction on an image is that powers larger than 1 make the shadows darker, while powers smaller than 1 make dark regions lighter. The non-negative real input value is raised to the power and multiplied by a constant A to get the output value. With gamma encoding, tonal ranges are redistributed to align with human perception, which is more sensitive to differences in dark tones than in bright tones.
Gamma encoding of images is used to optimize the usage of bits when encoding an image, or bandwidth used to transport an image, by taking advantage of the non-linear manner in which humans perceive light and color. The human perception of brightness under common illumination follows an approximate power function, with greater sensitivity to darker tones. Although gamma encoding originated to compensate CRT brightness characteristics, its present purpose is broader and includes perceptual efficiency in digital workflows.
Historical and technical background
In CRT displays, light intensity varies nonlinearly with electron-gun voltage. Altering the input signal by gamma compression can cancel this nonlinearity, so the displayed picture matches the intended luminance; however, the display’s own gamma characteristics do not govern the gamma encoding of images. Photographic film captures fine shade differences that are often reduced in reproduction, hence artistic choices in presentation matter. Digital sensors typically respond linearly, so rendering linear raw data to conventional RGB entails gamma encoding in many image formats.
The concept of gamma can be visualized as the slope of the input-output curve on a log-log plot. The sRGB color space, widely used in cameras, PCs, and printers, uses a decoding gamma near 2.2 for much of its range, though it is not a simple power-law. Below a threshold, the curve can be linear to preserve a straight encoding of very dark values.
Gamma in display pipelines
Video signals, image files, and displays embed gamma characteristics that determine how encoded samples map to light output. In many systems, images are encoded with a gamma around 0.45 and decoded with about 2.2, and Macintosh systems historically used different values. Pixels stored as JPEG or PNG carry gamma-encoded values, not linear intensities, to optimize storage and quality. The rendering software writes gamma-encoded pixel values to video memory, which then drives the display through DACs and subsequent attenuation or amplification of voltages.
Most displays have their own gamma, often around 2.2, which interacts with the image’s encoding gamma. The end-to-end system gamma is the combination of image gamma, display gamma, and any color-management adjustments performed along the pipeline. In practice, calibration tools and ICC profiles are used to align the overall system gamma with perceptual expectations.
Practical use in Photoshop and image workflows
Photoshop and other image-editing tools operate in gamma-enabled spaces. When adjusting brightness and contrast, editors must understand that many operations are designed to work in gamma space rather than linear space. This matters because processing in the incorrect space can lead to artifacts such as banding or washed-out shadows and highlights. Some Photoshop operations (overlay, soft light, etc.) assume gamma-correct rendering to behave as expected, and may require adjustments to gamma or color space for accurate results.
In a typical workflow, a camera renders into a gamma-encoded image (often 2.2), which is stored in a file format such as JPEG or TIFF. The display system then applies a display gamma to reconstruct a perceptually linear scene. Photoshop users can adjust gamma through curves, levels, and LUT-based corrections; however, the final appearance also depends on monitor calibration, ICC profiles, and the chosen working color space.
Color spaces, decoding, and metadata
The PNG format includes a gAMA chunk to store the image’s gamma, aiding automatic gamma correction during rendering. JPEG and TIFF files may carry gamma metadata (Exif Gamma tags or ICC profiles) to facilitate color management across devices. When color management is absent or inconsistent, browsers and displays may render colors differently, highlighting the importance of embedded profiles and consistent gamma handling across platforms.
The sRGB space is defined with a decoding gamma near 2.2, but its actual curve is more complex at very low luminance values. In practice, most digital images stored for web and print follow a standard encoding gamma around 2.2, with linear encoding used for some RAW files. The relationship among file gamma, display gamma, and viewing gamma can be conceptualized as a system where the input scene, file encoding, and display output combine to reproduce perceptually correct brightness.
Practical tips for Photoshop users
To ensure faithful rendering, work in a calibrated workflow: use an ICC profile, enable color management in Photoshop, and be mindful of the gamma of your working space. When saving, choose a format and profile that preserve the intended gamma (e.g., sRGB or Adobe RGB with the appropriate gamma encoding). If you notice banding or tones that look off, verify the display’s gamma, monitor calibration, and the image’s embedded profile. For display on different devices, consider soft-proofing to anticipate how gamma differences will affect output.
Technical reminders and caveats
Gamma correction is a type of power-law function with exponent γ, distinct from the mathematical Gamma function. In linear light workflows, pixel operations should ideally occur in linear space to avoid non-physical color shifts; many programs perform scaling in gamma-enabled spaces, potentially introducing artifacts if not handled carefully. Dynamic range is increased by gamma encoding, allowing more tonal information to be encoded within a given bit depth. Nevertheless, gamma encoding adds complexity to recording and displaying images, requiring a display gamma to be applied during viewing to recover the original scene luminance.
Key takeaways about gamma in imaging
- Gamma compression and expansion manage perceptual luminance more efficiently than linear encoding.
- Display devices and image files interact via a system gamma that may differ from the encode/decode gamma of the file.
- Photoshop workflows benefit from awareness of gamma space, color profiles, and monitor calibration to avoid artifacts.

For a practical visual aid, a diagram showing the relationship between input intensity, gamma curve, and output luminance helps illustrate how gamma affects shadows and highlights.
Introduction to Linear Workflow and Gamma Correction
A short video can demonstrate adjusting curves in Photoshop to visualize how gamma shifts affect tonal distribution across shadows, midtones, and highlights.
Table: common gamma values and roles
| Context | Typical gamma | Notes |
|---|---|---|
| Display native gamma (CRT) | ~2.5 | Inverse relationship to eye sensitivity; requires slight correction to 2.2 overall |
| Display gamma (LCD with LUT) | ~2.2 | Common target for overall viewing gamma |
| Image encoding gamma (sRGB) | ~2.2 decoding | Not a simple power law across all luminance |
| Photoshop working space | Varies (sRGB, Adobe RGB) | Choose to match workflow and output device |
“Where gamma is applied” in the pipeline
In a typical pipeline, camera encodes into JPEG with a standard gamma such as 2.2, rendering software may convert to another color space, and the monitor may perform its own gamma correction. The net effect is the system gamma, which should be close to linear (gamma ≈ 1) for faithful reproduction. In practice, display calibration tools build ICC profiles and apply LUTs to ensure the image appears as intended on different devices.
tags: #gamma #correction #in #photoshop