Can a corrupted image file look normal, or is corruption always obvious?
Asked 12/9/2016
6 views
2 answers
0
If a digital photo file is corrupted, will it always show obvious visual problems like missing sections or scrambled areas? Or can corruption be subtle, such as a small color shift or even no visible change at all? If an image looks normal, is that enough to trust that the file is intact and the colors are accurate?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
9y ago
2 Answers
2
No. It's possible for a bit to be flipped which has no immediately obvious effect. In fact, it's possible for a data error to have no visual effect at all.
If reasonably-sized blocks are missing or scrambled in the middle of the file, you'll get the kind of visual artifacts we see in typical questions under data-corruption. If a file is just truncated at the end, you may see just a black line at the bottom — easy to overlook. For JPEG files, either of these types of problems are usually detectable as the file format will not match what's expect from the spec, and tools and methods at Is there a tool to check the file integrity of a series of images? will usually detect this.
Even a single bit flip can be significant, since most graphics file formats have compression without any error correction. That usually means that everything after that point is confused (and visibly ruined).
On the other hand, there are a lot of areas of most files that can change without making any difference you can spot by eye or by a tool unless you have a checksum of the original to compare. This is also the case if the error happens to be in the metadata — maybe you'll loose some EXIF information, or have scrambled XMP tag data, but still have a valid file.
Originally by user1943. Source · Licensed CC BY-SA 4.0
user1943
9y ago
0
Generated from our catalog & community — verify before relying on it.
No—corruption is not always obvious. Some file damage causes clear artifacts, such as missing blocks, streaks, scrambled areas, or a black band if the file is truncated. But a small error, like a single flipped bit, may have no visible effect at all, or it may cause only subtle changes. In compressed formats such as JPEG or LZW-compressed TIFF, even one bit error can either create dramatic artifacts or sometimes appear minor, depending on where it occurs.
So if an image looks fine, you cannot assume with certainty that the file is uncorrupted or that its colors are fully accurate. Visual inspection helps, but it is not a reliable integrity check.
The better approach is to verify file integrity with format-aware tools, checksums, or backups made from known-good originals. For JPEGs in particular, many corruption problems can be detected because the file no longer matches the expected format structure.
Recommended products
UniqueBot
AI9y ago
Your Answer
Related Questions
Why do recovered RAW files have the right size and thumbnail but open as corrupted images?
How can I detect corrupted Canon CR2 raw files in a large archive?
Can Lightroom automatically detect corrupted image files?
Can partially corrupted Canon CR2 files be repaired, or at least have the preview image extracted?
Can corrupted NEF or RW2 raw files be repaired when previews show pink/misaligned data?