🌗 Gamma Correction & Tone Mapping — Mini Lab

Controls

Adjust gamma/exposure/black–white points. Drag & drop or upload an image, or use the samples.

Images are processed locally in your browser.
2.20
0.0
0
255

Visualization

Input
Output
Equation (per channel): 1) Normalize & clamp to [0,1] using black (b) & white (w): x' = clamp((x - b) / (w - b), 0, 1) 2) Gamma & exposure (E in stops → scale s = 2^E): y' = (x')^(1/γ) · s 3) Map to 8-bit: y = clamp(round(255 · y'), 0, 255)
γ = 2.20 Exposure = 0.0 stops Black = 0 White = 255