JPEG can be made almost as resilient as an uncompressed format by adding in restart markers.
Restart markers duplicate the JPEG headers within the file, at however many intervals you like, so the bitstream can be, well, restarted, limiting the effect of any corruption.
`jpegtran` can insert them losslessly.