While PNG and TIF are lossless formats, JPEG appears to be far more robust.
If I alter few bytes using a HEX editor, PNG turns into a glitchy mess. TIF vaporizes into a noisy mess (parts of the file after the altered bytes). But JPEG just has minor colour alteration and shifting at the point of the file where the damage was artificially added.
Progressive JPEG is the most robust: Damaging it causes some image noise and increases visibility of 8x8 pixel blocks, but the image is still viewable.
Obviously, BMP (bitmap) is the most robust, as it is uncompressed.
I have not tested High Efficiency Image File Format (HEIC) (filesamples.com) yet, because my current image viewers do not support it yet.
While PNG and TIF are lossless formats, JPEG appears to be far more robust.
If I alter few bytes using a HEX editor, PNG turns into a glitchy mess. TIF vaporizes into a noisy mess (parts of the file after the altered bytes). But JPEG just has minor colour alteration and shifting at the point of the file where the damage was artificially added.
Progressive JPEG is the most robust: Damaging it causes some image noise and increases visibility of 8x8 pixel blocks, but the image is still viewable.
**Obviously**, BMP (bitmap) is the most robust, as it is uncompressed.
I have not tested [*High Efficiency Image File Format* (HEIC)](https://filesamples.com/formats/heic) yet, because my current image viewers do not support it yet.
(post is archived)