Update: This guide has been updated for JAR (JPEG Automatic Repair), which replaces the older JPG-Repair Toolkit with automated byte-level reconstruction and built-in file diagnostics.
One of the most common problems people submit to my Photo Repair Service is a JPEG where the top portion looks normal, while the bottom half is missing, solid grey, or filled with a single colour block. Whether the photo can be rescued comes down to one simple question: is the image data still inside the file, or was it overwritten?
Step 1: Check if the half-grey JPEG can be repaired
Before attempting a repair, run two quick checks to see whether real JPEG data still exists in the lower half of the file:
- Compare the file size: Check the size of the broken photo against healthy JPEGs shot on the same camera with similar settings. If intact photos are around 3 MB and your broken photo is only 200 KB, the missing data was likely never saved or was truncated by a filesystem error. If the file size is roughly normal (around 3 MB), continue to the next check.
- Inspect the file with JAR’s diagnostic tools: Download the free trial of JAR (JPEG Automatic Repair), open the photo, and select Tools > Byte map, entropy, histogram.
- Healthy, repairable data: The byte map looks like fine, even noise all the way down, the histogram is fairly uniform, and the entropy line stays close to 7.6–8.0 bits per byte.
- Unrepairable data (Dead file): Halfway down the byte map, the noise suddenly turns into solid black (zeros) or a flat repeating pattern (such as
FF FFor55 55), causing the entropy graph to plummet below the 7.6 dashed line. This usually happens with counterfeit memory cards or overwritten sectors. No repair software can invent missing image data.
Step 2: Why a healthy-sized JPEG turns grey halfway down
If your file size and entropy look healthy, the bottom half of your photo is still there—your image viewer simply stopped reading it.
JPEG files use two-byte structural codes called JPEG markers (such as FF D8 for Start of Image and FF D9 for End of Image). Bit corruption inside the compressed image stream can accidentally create an invalid marker or a premature End of Image marker. The moment Windows Photos, Photoshop, or your browser hits that bad marker, it aborts decoding and fills the rest of the frame with grey.
Simply stripping out the bad marker is not enough. Because JPEG stores pixels as compressed Minimum Coded Units (MCUs) that depend on the blocks before them, any damaged bytes will also shift the rest of the image sideways and throw off brightness and colour.
Step 3: Repair the half-grey JPEG automatically with JAR
JAR (JPEG Automatic Repair) handles both the marker cleanup and the MCU realignment automatically without modifying your original file:
- Open the photo: Launch JAR and open your half-grey JPEG via Open…, or drag and drop it onto the JAR window.
- Check the default options: Keep Fill inserted blocks from the row above and Crop missing tail checked. (If the file truly ends early, Crop missing tail cleanly trims the empty grey bottom instead of leaving dead space.)
- Click Analyse: JAR automatically strips out invalid
FF xxmarkers and foreign bytes, locates every damaged spot in the bitstream (marked with red lines), and calculates the exact MCU shifts and colour corrections needed. - Click Repair: JAR saves the repaired photo next to your original as
name_auto.jpg. Use the Original and Repaired buttons to verify that the bottom half of your photo is back. - Optional – Smooth scars or tweak in Assisted Mode: If a small horizontal seam remains where damage occurred, click Smooth scars to blend it, or click the flagged gap in the list to fine-tune the alignment and colour sliders manually.
Need manual help with a critical photo?
If JAR’s diagnostics confirm that JPEG data is still inside the file, yet automated repair leaves stubborn shifts you cannot align yourself, submit the photo through my Photo Repair Service and I will inspect the bitstream manually.
Any idea what causes the JPG to cut off the bottom and have a reduced size? I had a time about 15 years ago when all the JPG on my hard drive do this and they all were cut down from 1 MB to 28KB. This corrupted all the JPG and I had to restore from backups. Now, I am noticing it happening again (Obviously a different computer) and the file goes from 1.5 MB down to about 185 KB. It is ALWAYS the bottom that is cut off and it seems limited to specific folders. Is this a virus? Is this a hard drive problem? Trying to figure out how this happens, understanding it is not recoverable since the data is gone.
File size as you see it in Explorer is a ‘property’ that’s kept in file system. So file size decreasing is due to file system displaying incorrect size. Is this a HDD or SSD and what file system?
It may actually be recoverable if you stop using the drive as the file system being incorrect does not mean actual data disappeared.