bitmosh recreates a real glitch. PDFs can store images the way PNG does. With the Paeth filter, each pixel is saved as its difference from a neighbour: left, above or above-left, whichever a small rule picks.
Above the first row there is nothing, so a correct reader uses zeros. bitmosh puts a colour there instead. At first the picture only changes tint.
But values wrap past 255. Where one neighbour has wrapped and another hasn’t, the rule picks the wrong one. Every later pixel builds on that mistake, so it spreads right and down as blocks and streaks.
Pixel size and Raw rows are two other ways to break the same decoding.
Everything runs on your device. Your images are never uploaded.