Tag Archives: damaged jpeg

Recent changes to JPEG-Repair Toolkit

2.8.101 # Adds MCU clone tool To repair a JPEG you typically need to remove corrupt data which affects alignment of all data following corruption. To re-align you then insert stuff bytes (zeros) which leave a grey horizontal line. In this video I show how I use MCUs directly above the grey line to replace… Read More »

JPEG restart markers to the rescue

Restart markers make the difference This YouTube channel by my friend and colleague Nguyễn Vũ Hà has many great examples of JPEG-Repair being used to repair STOP/DJVU ransomware affected files. This video in particular is a great showcase on how JPEG restart markers prevent corruption propagating through the JPEG image stream. As you can see… Read More »

Windows Photos: It looks like we don’t support this file format

Windows Photos: “It looks like we don’t support this file format.” The first thing you need to check is if other photo viewers can actually open the file. For example try the ‘old’ Windows Photo Viewer or a third party photo viewer. If those fail to open the photo as well, the file may be… Read More »

Alternative method for half grey or truncated JPEG photo repair

There are various examples on this website of repairs of half grey or truncated JPEG images. In those cases all image data is actually present, but due to an error or corruption only a part of it is visible. If data is simply missing because for example the file is partially overwritten or cut-off, repair… Read More »

Repair/Recover JPEGs encrypted by ransomware STOP Djvu

This article shows repair of JPEGs that fell victim of ransomware. This particular ransomware only encrypts part of the file. Due to this the JPEG header and some 150 KB of JPEG data are lost. Using a reference file and weeding encrypted data we can repair the photo.

Unknown or invalid JPEG Marker

If you get a Unknown or invalid JPEG Marker this means one of two: The photo viewer or editor encountered a JPEG marker it isn’t familiar with. The JPEG file is corrupt. To rule out cause 1, your photo viewer editor doesn’t recognize a certain JPEG marker, update your software and if that does not help, try… Read More »

Recover photos from Android Micro SD Card

Probably Android phones are the most common devices to take photos with nowadays often stored on a Micro SD Card. Consequentially many lost photos will be on Android devices. Photos can be on: Internal memory (Micro) SD Card Although many want you to believe it is easy to recover the lost or deleted photos and… Read More »

Photos on SD card are corrupt

When you discover photos on your SD card are corrupt you should: Do as little as possible (read: nothing) with the card. Do NOT run chkdsk on the card itself! Create a disk image of the card immediately! There are free and paid ways to try to recover or repair your photos. So I’ll be… Read More »

Recovered photos are corrupt – Won’t open

Recovered photos are corrupt and won’t open after you tried to recover them using undelete, file recovery of photo recovery software? Here’s a few things to try. There are a huge number of JPEG recovery and undelete programs available on the web, many even for free. However, the vast majority of these can only handle… Read More »

Bottom half of JPEG is missing or grey or solid color

There’s basically three things that can be wrong if a JPEG opens but is partially grey:

1. File is too small. Let’s an average JPEG shot with same camera and settings is 4 MB and the ones that are damaged are like 1 MB or 2 MB. Then probably half the data is simply missing. These files can not be repaired.

2. Normal file size. Either part of the file does not contain image data or file does contain image data but is interrupted by some invalid data.

If part of the file does not contain image data then this is sometimes easy to spot using a hex editor. All of a sudden ‘random’ binary data stops and changes to FF FF FF or 00 00 00 etc.. Repair: Impossible.

In case the data is however is there but it is interrupted repair is often possible. JPG-Repair tries to detect and will try to get rid of the invalid data, however this does not always work. Current version detects invalid JPEG markers, common damage due to bad sectors and some type of corruption I observed a few times with images shot with certain Samsung phones.