ExifTool Forum

ExifTool => Newbies => Topic started by: timecapsule on September 19, 2012, 08:18:38 PM

Title: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: timecapsule on September 19, 2012, 08:18:38 PM
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 (https://exiftool.org/forum/index.php/topic,4172.msg19805.html#msg19805) 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
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: Phil Harvey on September 20, 2012, 08:03:11 AM
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
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: Phil Harvey on September 20, 2012, 10:48:49 AM
Thanks. I got the sample.  I can extract a 4368x2912 JPEG image from this file, but the original RAW image may be unrecoverable.

- Phil
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: Phil Harvey on September 20, 2012, 11:40:29 AM
Ah, right.  I missed that you had referenced the extract_preview script (https://exiftool.org/forum/index.php/topic,4172.msg19805.html#msg19805) in your first post.

This script will work in Windows if you install ActivePerl (http://www.activestate.com/activeperl/) first.  Then run "cmd.exe" and use this command:

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

- Phil
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: ShtRk on June 29, 2013, 01:04:15 PM
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

Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: Phil Harvey on June 29, 2013, 03:34:17 PM
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
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: ShtRk on July 05, 2013, 05:42:04 PM
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.
Title: Re: Extraction of Currupt .cr2 files in Windows 7 Newbie
Post by: Phil Harvey on July 05, 2013, 07:28:41 PM
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