About Gamma Correction
Brightness sliders shift every tone and soon turn highlights to flat white. A gamma curve bends the tones instead: pure black and pure white stay exactly where they are and the mid-tones move, so an underexposed photo opens up without losing its sky.
A gamma above 1 lifts the mid-tones and below 1 deepens them. Each channel is mapped with out = 255 × (in / 255)^(1 / gamma), so 2.2 brings a middle grey of 128 up to 186.
How it works
- Your picture is decoded by the browser, upright, at its full size, and its pixels are read from a canvas.
- The chosen effect is computed pixel by pixel on that data. Pictures over one megapixel are handed to a background worker so the page stays responsive; moving a slider again stops the old run.
- Blur is three box blurs in a row, a close approximation of a Gaussian that takes the same time at any radius. Edges and emboss use the Sobel gradient of brightness.
- The result is drawn back to the canvas and saved in the format you click. Transparency is kept in PNG and WebP.
Questions
Which way does the slider go?
Above 1 makes the picture lighter in the middle, below 1 darker, and 1 leaves it unchanged. Some programs use the opposite convention; here the value is the exponent’s inverse, as in most photo editors.
Will it clip my highlights?
No. The curve always maps 0 to 0 and 255 to 255 and never crosses itself, so no detail is pushed past black or white.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.