CR2 File header problem

Started by RvG, May 21, 2016, 02:01:44 AM

Previous topic - Next topic

RvG

Hi,
I see some usefull tips here, but so far none of the ones I tried fixed the issue I have. I photographed a show yesturday and at the end my camera froze. After 10 minuted I had to restart is by removing the SD card. Now I find that quite some images (not all) are corrupted (I get a file format error with the exiftool). How can I figure out whether this can be repaired and if zo, how can it be done?
Kind regards and thanks in advance!

Phil Harvey

The best thing to do is to look at the file in hex.  If it is full of binary zeros, or random, then you are out of luck.  Most times the corrupted images can't be recovered, but sometimes there is an embedded preview that may be extracted.  Search for "extract_preview" in this forum for a script to do this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).