From smooth tones to flat bands: posterizing by the numbers
A normal photo can use 256 values in each of its red, green and blue channels, which is why a sky can fade smoothly from deep blue to pale. Posterizing removes most of those values. Each channel is allowed only a few levels, spread evenly from 0 to 255, and every pixel moves to the nearest allowed level. The smooth fade becomes a few flat bands, like a poster printed with a small set of inks.
Here is the arithmetic for 4 levels. The allowed values are 0, 85, 170 and 255, one step of 85 apart. A channel value of 42 is nearer to 0 than to 85, so it becomes 0. A value of 43 is nearer to 85, so it becomes 85. A value of 200 becomes 170, and 230 becomes 255. Every channel of every pixel is snapped the same way, and the three channels are treated separately, so a pixel can end up in a different hue than it started.
The presets cover the useful range. Subtle uses 12 levels: most of the photo looks normal and only skies and soft shadows show bands. Poster uses 6 levels, which happen to be the 216 colours of the old web-safe palette: 0, 51, 102, 153, 204 and 255. Pop art uses 3 levels, so each channel is off, half or full, and the whole image has at most 27 colours. Fine-tune lets you choose any number from 2 to 32.
The format matters more here than for other effects. Flat areas of colour with sharp borders are exactly what JPEG handles worst: it adds faint speckles along every border. If the result is going on a poster or a T-shirt, start from a PNG and you will get a PNG back, with clean edges. A JPEG source is saved as JPEG at high quality, and the speckles are small, but they are there.
The limits: the levels are always spread evenly, so you cannot pick the colours or match a brand palette. It does not trace the result into shapes, so it is not a vector file for a cutting machine. HEIC and other formats a browser cannot write come out as PNG. The largest image it takes is 24 megapixels, or 10,000 pixels on a side.