Solarization: from a darkroom accident to a one-click effect
Solarization started as a problem. Nineteenth-century photographers noticed that a hugely overexposed part of a plate, such as the sun in a landscape, could come out dark instead of bright. In 1862 Armand Sabattier described a related effect: if a print or plate is flashed with light half way through developing, its tones partly reverse. Strictly, the darkroom version is called the Sabattier effect, but most people call both solarization. Man Ray and Lee Miller made it famous in the 1930s, with portraits that glow along their edges.
The digital version is a simple rule applied to every channel of every pixel. Pick a fold-over level. Any value above it is turned upside down by subtracting it from 255, and any value at or below it is left alone. With the Sabattier preset the level is 128, half way. A shadow at 60 stays at 60. A mid tone at 128 stays at 128. A bright sky at 220 becomes 35, and pure white becomes pure black.
That rule has a visible side effect: nothing in the result can be brighter than the fold-over level. The brightest point of the picture is now the old mid tone, so a solarized photo is darker and flatter than the original. Highlights only, at 192, keeps more of the photo as it was and folds over only the brightest parts, such as a sky or a white shirt. Deep fold, at 64, turns over almost everything, so the picture looks close to a negative with its shadows kept.
Colour photos behave differently from black and white ones. The level is checked on red, green and blue separately, so a skin tone of 230, 180, 150 becomes 25, 75, 105, a dark blue. Where a colour crosses the level in one channel but not in another, the edges pick up strong, unexpected hues. Some people want that look. For the classic silver print look, make the photo grey first with Grayscale Image and then solarize it.
The limits are plain. This is a fixed tone rule, not a simulation of film chemistry, so it does not add the thin light lines (Mackie lines) that a real Sabattier print shows along edges. Transparency in a PNG is kept as it was. A JPEG is saved again as JPEG at high quality, which loses a tiny amount of detail. HEIC and other formats a browser cannot write come out as PNG, and the largest image the tool takes is 24 megapixels.