Author Topic: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?  (Read 76017 times)

banjoinn

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #60 on: January 03, 2013, 11:27:54 PM »
Correction - 520 Mb when in FX format, 232 Mb in DX format. I can put them on an ftp site if that's the easiest way to transfer them.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #61 on: January 04, 2013, 07:06:20 AM »
Whatever is best for you.  My mail can easily take files of this size (one per email).

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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #62 on: January 04, 2013, 08:26:03 PM »
Thanks, I got the files.  If all goes well, my hope is to have a new version of fix_corrupted_nef that will handle D800 DX images ready for Monday.

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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #63 on: January 07, 2013, 07:35:21 AM »
I have just released a new version of the fix_corrupted_nef utility that will fix these D800 DX images.

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

Cloudbuster5

  • Newbie
  • *
  • Posts: 2
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #64 on: January 13, 2013, 03:38:33 PM »
I have this problem with the pictures I took while on a trip. I sent you a link to the photos. Anything you can do will be appreciated. The camera is a D3200. Thanks,
Van

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #65 on: January 13, 2013, 06:01:34 PM »
Darn.  Are you telling me this problem (downloading with Nikon transfer 1) affects D3200 NEF's too?  :(

If so, I will need a full set of sample NEF's to add support for this model (see this post for the required samples).

I can't take a look at the images until tomorrow, but if this is the problem then you can speed things along by sending me these samples (you can mail them to philharvey66 at gmail.com).

- Phil

Edit:  I've taken a look at your image, and it does look like a typical Nikon-Transfer-1-corrupted NEF.  I can add support for the D3200 if you send me the full set of test images that I mentioned.
« Last Edit: January 14, 2013, 07:54:14 AM by Phil Harvey »
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Cloudbuster5

  • Newbie
  • *
  • Posts: 2
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #66 on: January 14, 2013, 08:58:13 AM »
The camera only shoots one kind of raw. From the spec: Compressed 12-bit NEF (RAW)
JPEG: JPEG-Baseline Compliant with fine (approx 1:4), Normal (approx 1:8) or Basic (approx 1:16) Compression
NEF (RAW) + JPEG: Single Photograph Recorded in both NEF (RAW) and JPEG Formats

I updated the view nx and tranfer when I got home, so I can't make anymore corrupt files. I can send raw files from the newest transfer program.

Thanks, Van

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #67 on: January 14, 2013, 11:24:08 AM »
Hi Van,

OK, thanks.  So the sample you already sent covers the full set of NEF file types. :)

I'll get working on adding support for the D3200 then, and I'll post back here when I have something (probably a day or two).

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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #68 on: January 15, 2013, 07:26:23 AM »
There you go.  I have uploaded fix_corrupted_nef version 1.4 that adds support for the D3200.

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

j_p

  • Newbie
  • *
  • Posts: 1
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #69 on: February 25, 2013, 04:39:11 AM »

Hi Phil,

I´ve got a Problem with the RAW files of the D800E. I´ve downloaded the RAW files directly from the CF Card and opened it with an old version of CaptureNX 2, it´s V2.0.0, to edit the RAW files.
CaptureNX 2 overrided the original RAW file. Now I have an RAW file with the dimensions 1632 x 1080 pixel. I can open it in any RAW converter but only with this dimensions. After i processed it with the fix_corrupted_nef.pl I can display the file in ViewNX 2 but I can´t convert it. I can´t open the processed file in any other RAW programm.

Thanks for your help!

Jonas
Modify message

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #70 on: February 25, 2013, 07:23:37 AM »
Hi Jonas,

Could you send me one of the files (before you ran fix_corrupted_nef on it)?  My email is philharvey66 at gmail.com

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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #71 on: February 26, 2013, 08:08:07 AM »
Hi Jonas,

I got your image.

Sorry to be the bearer of bad tidings, but the raw data in the image you sent looks to be corrupted beyond repair.

Somehow it looks like the Nikon Capture program confused the RAW data with the preview image and stored a JPEG preview over top of the raw data in this file.

I don't see anything in there that looks like good raw data any more.  Sorry.  The only thing you can do with this file is to recover the 1632x1080 JPEG preview:

exiftool -jpgfromraw -w _preview.jpg FILE

where FILE is one or more file and/or directory names.

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

Djovetta

  • Newbie
  • *
  • Posts: 1
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #72 on: May 04, 2013, 02:22:22 PM »
Hi Phil, 

It's really great to see the comments on the forum, I figure my issue is a little bit more complicated but I still have hope.
My NEF files was corrupted by a brand new crap Sandisk Extreme Pro SD. After taking approximated 200 photos , the camera showed a message of error. After that, the SD does not work any more.

I used RescuePro (a Sandisk program) to download the files to my computer. But now I only can see the photos as a preview but the raw file is corrupted and I can't open it on aperture/Mac preview/viewNx 2.

I would like to know if you have ever seen this situation and if you can help me.

Thanks in advance.

Danilo

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #73 on: May 04, 2013, 09:25:03 PM »
Hi Danilo,

Take a look at the image using the Exiftool -htmldump feature:

exiftool -htmldump image.nef > out.html

You take a look at the raw image data this way.  I have seen cases where it is all zeros, which is bad, and not recoverable.  Or ends with all zeros, which means that at least some of the data was lost.

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

TofuCivic

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #74 on: May 15, 2013, 03:13:42 AM »
Hi Phil,

I also have fallen into the same trap of transferring my D7100 photos with Nikon Transfer 1.  I seem to be able view the raws in ViewNX 1 and 2, but nothing else.  Have you had any requests to add support for the D7100?  I've got some photos of my newborn that I'm hoping I can still recover.  Stumbling onto this forum has given me some hope :)

Thanks in advance, your help is very much appreciated.
How