One of the most frequent questions is whether a damaged JPEG can be restored. A file is salvageable if it retains compressed image data—characterized by high entropy (close to 8 bits per byte) and random noise—even with a broken header or shifted colors. However, files filled with zeros, repeating patterns, or non-image data are permanently unrecoverable.
Quick Answer: You can diagnose a broken photo using the built-in tools in JAR (JPEG Auto Repair) to check its data content before attempting a fix.
Why Some Corrupt JPEGs Can Be Repaired (and Others Can’t)
- Headers vs. Image Data: Damaged headers prevent image viewers from opening a file, though the underlying picture data often remains intact.
- Compressed Tiles (MCUs): JPEGs store pixels in variable-length Minimum Coded Units (MCUs) relative to previous tiles.
- How Corruption Spreads: Interrupted transfers or faulty cards flip bits, causing downstream tiles to shift in alignment or color.
Rules of thumb:
- Repairable: Broken headers, invalid markers (
FF xx), color shifts, or partial grey bands with valid data. - Unrepairable: Zero-filled files, repeating patterns (
FF FF), or overwritten data.
Step 1: Check What’s Actually Inside the File with JAR Diagnostics
Open your file in the free trial of JAR – JPEG Auto Repair and navigate to Tools > Byte map, entropy, histogram… to review four panels:
- Entropy per Block: Healthy data sits near
8(above7.6); drops near0indicate empty filler or text. - Byte Map: Uniform static noise indicates healthy data, while solid black blocks or repeating stripes signal wiped content. Valid markers appear in blue/green and corrupt ones in red.
- Byte Histogram: A flat distribution across byte values is normal; massive spikes on single values confirm missing image data.
- Bit Balance: Tracks stuck bits from failing readers; red bars past the threshold indicate hardware issues.
Step 2: Repair the Image Automatically or in Assisted Mode
- Analyse: JAR works on a memory copy, stripping invalid markers and mapping color shifts.
- Reference Header: Provide an intact sample photo from the same camera if the original header was wiped.
- Repair: Realigns MCUs and exports a fixed copy (
filename_auto.jpg). JAR Pro also supports batch folder processing.
Frequently Asked Questions
Why does a corrupt JPEG still show a large file size?
File systems allocate drive space matching the original file size, meaning zero-filled or crashed transfers can report multi-megabyte sizes despite lacking actual image data.
Can online JPEG repair websites fix files that JAR cannot?
No. If the bitstream is overwritten with zeros or repeating patterns, no service can rebuild it. JAR performs all local repairs without uploads or file limits.
What if entropy is high, but the repaired image still looks scrambled?
This typically points to severe hardware bit-flipping, encryption, or a mismatched reference header.
Key Takeaway
Check your file’s entropy and byte map in JAR before attempting fixes. Test your file using the free trial of JAR – JPEG Auto Repair or request a manual repair evaluation.