How to Recognise Damaged JPEG Images

Corrupt JPGs show very different symptoms depending on the type of damage – on a PC as well as a Mac. The fault patterns users describe to us most often:
- Grey or single-coloured area in the lower half – the picture is cut off from a certain line onwards, the rest is missing.
- Greyed-out or completely black images, although the file size looks normal.
- Wrong colours, colour stripes or shifted blocks – the subject is recognisable but distorted.
- “The file cannot be opened”: the image viewer, Photoshop or another image editing program reports an error or an unknown file format.
- Preview present, full image broken: in Explorer the photo looks normal, but opening it shows only pixel garbage.
- File size 0 KB – the content of the file is missing entirely.
How a JPG File Is Structured – and What Breaks
To understand which repair is possible, it helps to look inside the file format – JPEG is by far the most important of the compressed image formats. Every JPEG file consists of three parts:
- Header with metadata: resolution, colour profile, the camera's EXIF data – and usually an embedded miniature preview image. That is why the preview in Explorer can look intact although the actual image data is destroyed.
- Compressed image data: the picture is stored in 8×8-pixel blocks and Huffman-encoded. Decoding runs strictly sequentially from top to bottom – a single damaged byte therefore makes everything from that point on unreadable. This is exactly how the typical half images with a grey area come about.
- End marker: if it is missing, some programs abort opening the file, others display the image anyway.
The Most Common Reasons for Corrupt Image Files

Damaged photos are almost always a symptom – the actual cause lies one level deeper, on the device or the drive:
- Interrupted transfer or saving: camera switched off while writing, USB stick pulled too early, crash while copying – the file was never written completely.
- Bad sectors on the hard drive or SD card: if parts of the file sit on unreadable sectors, exactly these blocks are missing when the file is opened. Often many images in the same folder are then affected.
- File system errors: after a crash, entries in the file system point to wrong areas of the partition – the file suddenly contains foreign content. If the whole drive shows problems, our article on the RAW file system helps.
- Failed recovery: the most common case in our lab. Deleted photos or an accidentally formatted SD card were rescued on the computer with recovery software – but half of the restored images are broken. The reason: signature-based data recovery software cannot reassemble fragmented files correctly and saves fragments as JPGs.
- Flash memory wear: ageing NAND cells in memory cards and USB sticks flip individual bits – gradually more and more photos become unreadable.
- Fake memory cards: cards with counterfeit capacity overwrite old data beyond a certain fill level – the oldest images are then destroyed.
Many corrupt images at once are an alarm signal. If entire folders full of photos are suddenly damaged, it is most likely the storage medium that is dying – not the files. Do not start any repair attempts on the drive now; clarify the cause first and secure the data. The right immediate steps: first-aid measures for data loss.
First Aid: Create a Copy, Then Test
Before you try any tool, the basic rule of every file repair applies – never work on the original:
- Create a copy of the corrupt files – into a folder at a different location, for example on a second drive under Windows. All further steps happen only on the copy.
- Use several programs. Image viewers differ in tolerance: what the Windows photo viewer cannot open is often at least partially displayed by a browser, other operating systems (macOS, Linux) or an image editing program.
- Try converting. Opening and re-saving in another of the common image formats (PNG, TIFF, BMP or GIF) sometimes rescues a partially readable picture – the displayed image data is written anew, error-free, to a different location.
- Check for the embedded preview. The miniature image can be extracted from the header – small, but better than nothing when a single important photo is at stake.
- Compare file sizes. If many corrupt JPGs have exactly the same size or 0 KB, this points to a storage or recovery problem – then repair attempts on the files are not worthwhile. In that case, follow the solutions in the section after next.
Symptom, Cause, Chances: the Overview
| Symptom | Likely cause | Repair possible? |
|---|---|---|
| Lower half grey / picture cut off | File incomplete (transfer aborted or restored fragmented) | Only if the complete data still exists on the storage device – a case for data recovery |
| File does not open, size normal | Damaged header | Good chances – the header can be reconstructed with a reference file from the same camera |
| Colour stripes, shifted blocks | Individual bit errors in the image data | Partially – the picture remains disturbed from the error onwards |
| Preview OK, full image broken | Image data destroyed, header intact | Only the miniature can be extracted; the original may be recoverable from the drive |
| All images in one folder corrupt | Bad sectors, dying storage device | Do not repair the files – have the storage device read out professionally |
| 0 KB files | Only the directory entry remains | No file repair possible – data recovery from the storage medium |
What Repair Software and Online Tools Can Really Do
For JPEG repair there are countless programs, online services and repair software downloads – from the simple click-through assistant (“wizard”) to the photo repair tool with detailed instructions. Realistically, all these solutions can do exactly three things – the file format technically allows no more:
- Header repair: a destroyed file header is replaced with that of an intact reference file – ideally from the same digital camera or device with the same resolution. This is the only method of repair software with genuinely good results.
- Re-decoding with error tolerance: the tool skips damaged areas and displays what is readable. Result: half the picture – just without an error message.
- Extraction of the embedded preview: delivers a small substitute image.
A special case are signature-based tools like PhotoRec: they restore deleted images from the drive based on their file signatures – but with fragmented files this produces exactly the half-grey JPGs this article is about. The same applies to other photo file formats: RAW files from the camera and PSD files from Photoshop also frequently come back damaged from such rescues. Anyone who ends up with masses of corrupt photos after a recovery should therefore not repair the files, but have the rescue repeated from the original storage device – this time with correct handling of the fragmentation.
When the Storage Device Is the Cause: Data Recovery Instead of Photo Repair

If the image files are corrupt because the storage medium is failing, the order is reversed: first the storage device is secured, then intact files are created from it. In the lab this works as follows:
- Diagnosis of the storage device – hard drive, SSD, USB stick or memory card are checked; bad sectors and controller problems are identified.
- Write-protected sector image – even from partially unreadable areas, everything that is physically still readable is extracted.
- Reconstruction at file system level – instead of blind signature search, the original directories, file names and the actual location of all fragments are evaluated. This produces complete photos instead of halves – for JPG as well as PNG, TIFF, BMP, GIF or PSD; without converting to other formats.
- Verification of the results – you receive a file list in advance and see which images have been fully restored.
FAQ: Frequently Asked Questions About JPEG Repair
Three answers we give most often on the phone. What a photo looks like whose image data is damaged from the error position onwards is shown by the article image at the very top: the upper part is intact, below it the corrupt blocks begin.
Can the grey half of a picture be restored?
Not from the file itself – the data is simply missing there. However, the complete version often still exists on the original storage device and can be rescued by professional data recovery. The less has been written to the drive since, the better the chances.
Are free repair tools and online photo repair a safe solution?
Technically they do no harm as long as you work exclusively with copies and install or save nothing on the affected storage device. With online services, bear in mind that your photos are uploaded to third-party servers. And: never pay for a promise without an honest preview of the result.
Why are so many photos corrupt after a data recovery?
Because simple recovery software only recognises files by their signatures during the recovery process and assembles fragments in the wrong order. The problem is not your images but the method – a renewed, professional rescue from the original storage medium delivers the complete files in many cases.
Prevention: So That Images Do Not Get Damaged in the First Place
- Never remove the memory card while the access indicator is lit and switch the camera off before changing cards.
- Back up photos after every occasion – a backup on two separate storage media protects better than any later repair, no matter on which device the error happens. Backups cost minutes, repairs cost days. More on this: Preventing data loss.
- Replace full and old cards before wear costs you pictures – the typical warning signs often creep up gradually.
Conclusion
Corrupt JPEG files are, in two out of three cases, not a file problem but a storage device problem – the damage occurs on the way between camera, memory card and computer. Header damage can be fixed well with reference files – grey halves, mass corruption and 0 KB files, however, never through file repair, only through rescue from the original drive. Work exclusively with copies, and if several images are affected, clarify the condition of the storage medium first.
Our experts will gladly assess your case: 0800-881 12 25 (free of charge, around the clock) or via the online cost estimate.
Lars Müller