Extraction of Currupt .cr2 files in Windows 7 Newbie

Started by timecapsule, September 19, 2012, 08:18:38 PM

Previous topic - Next topic

timecapsule

I am new to this.  I was taking pictures at a charity event.  My daughter was downloading (she has done this often).  Don't know what she did but didn't tell me there was a problem until too late.  Of course, I have the rest of the pictures but the ones she deleted or copied over are the best ones.  Took computer tech and he did a deep restore of my CF flash cards and my hard drive.  I download exiftool and the Active Perl.

I did a drag and drop of the one of the corrupt files and this is what I found  By the timing of the file created it's the ones I need desperately.  I have until Monday to get this done.  I copied what showed up once I dragged the file to exiftool as attached.

I used a Canon 5D and Canon Rebel XT for the pictures.

I'm confused about the where to and use the extract_preview.  The post of June 5, 2012 is for an Apple.  I'm sure there isn't a lot of difference but I need the exact line or phrase to type in the command line. 

Thank you for your patience if this has been answered.

PH Edit: Added link to June 5 post

Phil Harvey

Judging from the ExifTool output it looks like ExifTool can't help here.  The file is corrupted enough that ExifTool doesn't recognize it.

If you email me the file I'll take a look to see if there is anything I can salvage.  My mail is philharvey66 at gmail.com

- 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 ($).

Phil Harvey

Thanks. I got the sample.  I can extract a 4368x2912 JPEG image from this file, but the original RAW image may be unrecoverable.

- 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 ($).

Phil Harvey

Ah, right.  I missed that you had referenced the extract_preview script in your first post.

This script will work in Windows if you install ActivePerl first.  Then run "cmd.exe" and use this command:

perl c:\path\to\extract_preview\extract_preview c:\path\to\corrupted\images\

- 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 ($).

ShtRk

Hi

I tried to to as your instructions with Windows 8's cmd but failed. Cmd showed: Can't open perl script "(path)": Permission denied.
Can you help me please?

Thai


Phil Harvey

OK, but I need more information:

1) Exactly what did you type?

2) Where is the "extract_preview" script located?

3) What was the exact error message?

- 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 ($).

ShtRk

I tried again and here they are:

1) This was what I typed in cmd: "C:\Windows\system32>perl C:\Users\Thai\Downloads\Compressed\extract_preview\extract_preview G:\cr2\"
"G:" is my external drive partition storing corrupted CR2 files.

2) As you can see above, "extract_preview" script is located in "C:\Users\Thai\Downloads\Compressed\extract_preview\"

3) Error message is: "This scripts requires Image::ExifTool -- please install it.", though I changed name of the file to "exiftool.exe" and place it in "C:\Windows" directory.

Phil Harvey

OK, we're making some progress.

Download and expand the full Perl Image-ExifTool distribution, then put the contained "lib" directory in the same directory as "extract_preview".  Then it should work.

- 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 ($).