20 /
How the generator turns a photo into numbered areas
First the photo is reduced to the number of colors you pick. It is laid on a grid of about 160 to 280 cells along the long side, depending on the detail level, and each cell gets the closest of those colors, measured in a color space that follows how people see color differences.
Then touching cells of the same color are joined into areas. Areas too small to paint, or too thin to hold a number, are folded into the neighbor they share the longest border with. Simple keeps only big areas and Detailed keeps smaller ones. Larger print sizes allow smaller areas, because each one is physically bigger on the canvas.
Last, every border is traced once and smoothed into curves, so the outline looks drawn rather than pixelated, and each area gets its number at the spot farthest from its edges. Large areas get extra numbers, so a sky or a background still has one wherever you start.