Gamma 1.0 changed zero pixels on all 11 readable files. The other six settings each changed about 68.2% of the batch — 42,970,116 to 42,995,243 of 63,016,384 — because pure black and pure white are fixed points of the curve and sit on roughly two thirds of these frames.
What actually differs between 0.8 and 3.0 is how hard the midtones move. Mean absolute change on the landscape photo went 8.213 at gamma 0.8 to 34.609 at gamma 3.0, while the count of changed pixels barely moved. At gamma 2.2 the 256 input levels collapsed to 184 distinct output values; at 3.0 they collapsed to 158.
This page measures gamma as a batch operation: what a folder of mixed files looks like after one number is applied to all of them. For the operations that run on the same twelve files, see the batch equalize measurement (level distribution instead of a fixed curve), the batch edge measurement, the batch sharpen measurement, the batch grayscale measurement and the batch invert measurement. For a shifted rather than curved brightness change, the batch blur measurement covers radius families. To flip a photo instead, start at the photo flipper.
Gamma and equalize are easy to confuse because both change brightness on a whole folder. They are different operations: equalize rebuilds the histogram so ranks of pixel values are preserved, while a fixed curve moves every value the same way. On this batch equalize changed 7,921,068 pixels of the landscape photo where gamma 2.2 changed 7,922,051, yet the two outputs differed from each other on 7,921,613 pixels, 66.013% of the frame. The same pixels move; they do not land in the same place.
Twelve files, 20,933,726 bytes on disk and 63,016,384 pixels across the 11 that decoded. Each readable file was converted to RGBA, each of its three colour channels was passed through the same 256-entry lookup table, and the result was written as an 8-bit PNG and compared with the decoded input pixel by pixel. The curve is the conventional power law: output equals 255 times (input divided by 255) raised to the power 1/gamma, rounded to the nearest integer.
Every setting except 1.0 changed close to the same number of pixels. That looks like the control does nothing, and it is the opposite: the count of changed pixels is a near-duplicate of the count of non-black, non-white pixels, which is a property of the photo rather than of the setting. The setting shows up in the magnitude.
| Gamma | Pixels changed | Share of batch | Mean abs change, landscape |
|---|---|---|---|
| 0.5 | 42,995,243 | 68.229% | 25.394 |
| 0.8 | 42,978,921 | 68.203% | 8.213 |
| 1.0 | 0 | 0.0% | 0.0 |
| 1.2 | 42,970,116 | 68.189% | 6.552 |
| 1.8 | 42,992,407 | 68.224% | 20.161 |
| 2.2 | 42,995,243 | 68.229% | 26.222 |
| 3.0 | 42,995,243 | 68.229% | 34.609 |
Mean abs change is the average absolute difference across all three colour channels of photo_landscape.jpg on a 0 to 255 scale. The batch share of 68.229% at gamma 3.0 equals 42,995,243 divided by 63,016,384.
This is the property that separates gamma from brightness. The curve maps 0 to 0 and 255 to 255 by construction, so the darkest and lightest values in a folder are untouched no matter which number is used. On the landscape photo at gamma 2.2, 22,452,413 of the 36,000,000 channel values went up, none went down, the largest single move was 72, and the pixels at 255 as well as the pixels at 0 stayed put — a contrast with brightness, which moves the pixels at 0 too.
| Input level | gamma 0.5 | gamma 0.8 | gamma 1.2 | gamma 2.2 | gamma 3.0 |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 16 | 1 | 8 | 25 | 72 | 101 |
| 64 | 16 | 45 | 81 | 136 | 161 |
| 128 | 64 | 108 | 144 | 186 | 203 |
| 176 | 121 | 160 | 187 | 215 | 225 |
| 240 | 226 | 236 | 242 | 248 | 250 |
| 255 | 255 | 255 | 255 | 255 | 255 |
The bottom row is the important one for a dark photo. Level 16 moves 85 steps at gamma 3.0, while level 240 moves 10. A folder of underexposed night shots will visibly change; a folder of bright product shots on white will barely move, and that is measurable before you run it: count the pixels at 255 first.
A lookup table can only produce 256 outputs, so a steep curve must skip some of them. At gamma 2.2 the outputs covered 184 distinct values out of 256, meaning 72 values could never appear in any file no matter what it contains. The count rises with the strength of the curve, and it rises in both directions even though one brightens and one darkens.
| Gamma | Distinct output levels | Values never produced | Slope 0–85 | Slope 85–170 | Slope 170–255 |
|---|---|---|---|---|---|
| 0.5 | 192 | 64 | 0.329 | 1.0 | 1.671 |
| 0.8 | 235 | 21 | 0.765 | 1.047 | 1.188 |
| 1.0 | 256 | 0 | 1.0 | 1.0 | 1.0 |
| 1.2 | 239 | 17 | 1.2 | 0.941 | 0.859 |
| 1.8 | 235 | 54 | 1.635 | 0.765 | 0.6 |
| 2.2 | 184 | 72 | 1.824 | 0.671 | 0.506 |
| 3.0 | 158 | 98 | 2.082 | 0.541 | 0.376 |
Slope is output change per one step of input, taken across the whole band: the value at the top of the band minus the value at the bottom, divided by the band width. A slope of 0.506 means eight consecutive input levels land on roughly four output levels.
The practical consequence is banding in smooth gradients, not extra grain. A photo that arrived with 5 distinct levels still has 5 after the curve, because a lookup table cannot create values that were not in the input; it can only merge them. Files that already carry 256 levels are where the loss appears, and it shows as a stepped sky rather than as noise.
A percentage of changed pixels is a property of the file, not of the setting. At gamma 2.2 the same curve changed 87.532% of the square PNG and 0.388% of the 16-bit grayscale file. What separates them is how much of each frame sits at exactly 0 or exactly 255.
| File | Pixels | Changed at gamma 2.2 | Mean abs change | Levels after | Equalize changed | Levels after equalize |
|---|---|---|---|---|---|---|
| photo_square.png | 9,000,000 | 7,877,898 (87.532%) | 34.757 | 184 | ||
| small_icon.png | 16,384 | 11,249 (68.658%) | 28.836 | 184 | 11,249 | 175 |
| screenshot.webp | 1,440,000 | 961,351 (66.76%) | 27.092 | 184 | — | — |
| exif_orient6.jpg | 3,000,000 | 1,987,527 (66.251%) | 26.632 | 184 | — | — |
| photo_landscape.jpg | 12,000,000 | 7,922,051 (66.017%) | 26.222 | 184 | 7,921,068 | 170 |
| photo_portrait.jpg | 12,000,000 | 7,913,234 (65.944%) | 26.215 | 184 | 7,912,336 | 170 |
| duplicate_photo.jpg | 12,000,000 | 7,913,234 (65.944%) | 26.215 | 184 | 7,912,336 | 170 |
| gray_8bit.jpg | 12,000,000 | 7,883,619 (65.697%) | 32.821 | 184 | — | — |
| logo_alpha.png | 960,000 | 513,220 (53.46%) | 20.062 | 5 | 513,220 | 3 |
| animation.gif | 120,000 | 10,000 (8.333%) | 2.333 | 2 | — | — |
| gray_16bit.png | 480,000 | 1,860 (0.388%) | 0.186 | 184 | — | — |
| broken.jpg | truncated, failed to decode; no output written | |||||
Levels after counts distinct values in the output image, all three channels together, so a file that never used many levels cannot show the collapse. Every file moved almost exactly the same pixels under equalize and under gamma 2.2, while the two outputs differ from each other on 66.013% of the landscape frame. A dash means equalize was not run on that file in this pass; the two byte-identical portrait JPEGs produced identical rows.
Gamma pushes midtones upward, so pixels near the top can be carried over 255 and pinned there. On the landscape photo the pixels at 255 rose from 224,922 to 266,022, an increase of 41,100, while the pixels at 0 did not change at all. The grayscale JPEG is the clearest case: 1,815 pixels at 255 became 4,509.
| File | At 255 before | At 255 at gamma 2.2 | Added | At 0 before and after |
|---|---|---|---|---|
| photo_landscape.jpg | 224,922 | 266,022 | 41,100 | 13,322,665 |
| photo_portrait.jpg | 226,363 | 268,006 | 41,643 | 13,332,326 |
| photo_square.png | 252,288 | 288,234 | 35,946 | 4,465,260 |
| gray_8bit.jpg | 1,815 | 4,509 | 2,694 | 12,347,328 |
| screenshot.webp | 20,731 | 25,376 | 4,645 | 1,556,382 |
| exif_orient6.jpg | 50,983 | 59,831 | 8,848 | 3,291,795 |
| logo_alpha.png | 0 | 0 | 0 | 1,340,340 |
| animation.gif | 0 | 0 | 0 | 330,000 |
Counts are single-channel, summed across the three colour channels. The counts at 0 are identical before and after because the curve maps 0 to 0 exactly.
The curve is applied per channel and does not touch the alpha channel. On the transparent logo the alpha bytes were identical before and after. Everything else about the container degrades if the output is re-encoded as an 8-bit PNG.
| File | Before | After | Note |
|---|---|---|---|
| logo_alpha.png | RGBA | RGBA | alpha bytes identical |
| animation.gif | 6 frames, indexed | 1 frame | Saving the first frame as GIF reopened with one frame |
| gray_16bit.png | 16-bit, 65,536 levels | 8-bit, 256 levels | raw samples ran 0 to 65,535; after conversion to RGB the top 8 bits survived, 21 channel values sat at 255 before and 42 after |
| exif_orient6.jpg | orientation tag 6 | no tag | 2000 x 1500 dims unchanged, tag dropped |
The 16-bit case deserves its own line. Converting a 16-bit grayscale image to RGB first keeps only the high byte of each sample, so the curve runs on 256 levels instead of 65,536. That is why this file changed the smallest share of pixels in the whole batch: its brightest values were already at the maximum before gamma touched anything.
Eleven 8-bit PNG outputs totalled 58,329,648 bytes against 20,933,726 bytes of input, or 2.786 times the source. The ratio depends on the setting: gamma 0.8 wrote 62,791,305 bytes and gamma 0.5 wrote 61,265,833. The largest growth was the landscape JPEG, from 2,403,704 to 12,382,872 bytes at gamma 2.2.
Two independent full passes at gamma 2.2 produced byte-identical output. Both runs wrote 58,329,648 bytes and hashed to SHA-256 8e00682deaff4985fd6fb10dd9edd8c18242ea0c7f3294922283baf4dff30ec2 over the eleven PNG files in order. The first pass took 10.09 seconds and the second 10.05 seconds on this machine; the times are wall clock for the whole folder, not a per-file benchmark.
Pick the gamma number first, then apply the same transfer curve to every file. In this batch a gamma of 2.2 raised the average channel value on photo_landscape.jpg from 93.213 to 119.435 and left 25.394 percent of the pixels untouched. Values under 1 pull the image darker and values over 1 lift it, and 1.0 is a no-op: zero pixels changed on all 11 files.
Gamma 1.0 maps every input level to itself, so the output is the input. On this batch that was the only setting of seven that changed zero pixels, and the transfer ladder shows 16 to 16, 128 to 128 and 255 to 255. Anything other than 1.0 moves at least the midtones.
In pixel values yes: 0 of 63,016,384 pixels differed at gamma 1.0. The file itself is not guaranteed identical. The output was written as an 8-bit RGBA PNG in every case, so a JPEG's bytes, a six-frame GIF's frames and a 16-bit grayscale file's depth all change even when no pixel value moves.
Brighter, and only in the top half by design. On photo_landscape.jpg gamma 2.2 moved 22,452,413 of 36,000,000 channel values up by at most 72 and moved none down, while pure black stayed 0 and pure white stayed 255. The bottom of the range hardly moves: level 16 becomes 72, but level 240 becomes 248.
Load the file, set one gamma number, download the result. The part worth checking before you commit a folder is the level collapse: at gamma 2.2 the 256 possible input levels produced 184 distinct output values, so 72 values can never appear. Gamma 3.0 skipped 98.
This batch cannot answer that, and no single number survives it. The same 2.2 setting moved 66.017 percent of a landscape JPEG, 87.532 percent of a square PNG and 0.388 percent of a 16-bit grayscale file, because the share of pixels that move depends on where the file's values already sit. Choose the number from your output target, then check one file from the folder at full size.
The alpha channel survived untouched: the transparent logo's alpha bytes were identical before and after gamma 2.2. What changes is the colour under partly transparent pixels, which moves like any other. Saving as PNG kept the alpha, while flattening to RGB first would have dropped it entirely.
It removes levels rather than adding noise. At gamma 2.2 the outputs held 184 of 256 possible values, and the transparent logo, which started with 5 levels, still had 5. The visible cost is banding risk in smooth gradients, not a grainier texture, and the largest single-pixel move on the landscape photo was 72 of 255.
Brightness shifts every level by a fixed amount; gamma multiplies by a curve that is worth 0.5 at black, 1.0 at mid-gray and 2.0 at white. That is why gamma cannot lift a dark photo without also compressing its highlights: at gamma 2.2 the 85 to 170 band has a slope of 0.671 and the 170 to 255 band 0.506, while the 0 to 85 band has 1.824.
No, and the gaps are the surprise. Every setting except 1.0 changed about 68.2 percent of the batch, because the same share of the frame sits at pure black or pure white and those two values are fixed. Within that, a single file ranged from 0.388 percent on a 16-bit grayscale image to 87.532 percent on a square PNG at the same gamma 2.2.