ExifTool Forum

General => Other Discussion => Topic started by: Cagilb on January 31, 2018, 05:51:09 PM

Title: broken cr2 files
Post by: Cagilb on January 31, 2018, 05:51:09 PM
Hi all, the CR2 files from my camera are broken or corrupt, i couldn't open or repair them. File sizes are 25-30mb. I wetransfered two of them to give you an idea  :) https://we.tl/RWKfds5nZ5 Are there any chance to fix them? Can you help me? Thank you for your time, every thing that can be rescued will be helpful.
Title: Re: broken cr2 files
Post by: Phil Harvey on January 31, 2018, 09:33:12 PM
I'll look at them when I can, but in the mean time, try running this command on a few of them (using the latest version of ExifTool):

exiftool -validate -warning -a FILE

- Phil
Title: Re: broken cr2 files
Post by: Hayo Baan on February 01, 2018, 02:27:16 AM
I had a look at the files and while they contain data, there does not seem to be any image data contained in them. Only  IMG_1891.CR2 contained a tiny 160x120 image (attached) that I was able to extract with Phil's extract_preview (https://exiftool.org/forum/index.php/topic,4172.msg19805.html#msg19805) script.

Hopefully you have a backup from which you can restore the files because they do seem beyond repair.
Title: Re: broken cr2 files
Post by: Cagilb on February 03, 2018, 12:32:42 PM
Thank you for your time =) still i couldn't solve the problem.
I'm not great with codes. Is there any chance you may help me out?
Title: Re: broken cr2 files
Post by: Hayo Baan on February 04, 2018, 04:07:32 AM
I'm not sure what you mean. Do you need help with the extract preview script?