ExifTool Forum

General => Other Discussion => Topic started by: vibra on February 28, 2015, 05:39:50 PM

Title: Nikon D810 corrupted files
Post by: vibra on February 28, 2015, 05:39:50 PM
Hi Phil,
I have some problems with some NEF files from my new D810.
About 10 out of 2000 are now no longer recognized by any software (CNXD, ViexNX2, DXO).
I identified that these files are those on which I did some labelling with ViewNX2 v2.3.2 (add / remove labels).
Now they are corrupted and I cannot read them.
With the latest ViewNX2 v2.10.3, there is no problem, it does not corrupt files. But it is too late for my corrupted files !

I have tested ExifTool and I don't see any obviously corrupted field but I am not by far a specialist.
If you have a little time, could you please have a look on these files in http://vb-photo.com/tmp/ ?

Title: Re: Nikon D810 corrupted files
Post by: Phil Harvey on February 28, 2015, 09:41:53 PM
Whatever you do, don't edit these files with anything else or you may lose them for good.

If you are lucky, this problem is fixable.  Send me a sample and I'll take a look.  If it can be fixed, I'll need a full set of 12 samples to add support for the D810 to my fix_corrupted_nef (https://exiftool.org/fix_corrupted_nef.html) utility.

- Phil
Title: Re: Nikon D810 corrupted files
Post by: vibra on March 01, 2015, 11:28:16 AM
Hi Phil,
Thanks for your answer. The files are too big to be attached here but you can find them in http://vb-photo.com/tmp
But there are only 7. To add more files, I have to reinstall the old version of ViewNx2 to corrupt other files. Is it absolutely necessary ?
Title: Re: Nikon D810 corrupted files
Post by: Phil Harvey on March 01, 2015, 11:39:15 AM
Thanks.  I'll download them tomorrow when I'm back on high speed.

To add support for the D810 I only really need the originals.  I use the corrupted ones to verify that things are working.

I'll ask for the originals tomorrow if I think I can fix the corrupted images you posted.

- Phil
Title: Re: Nikon D810 corrupted files
Post by: Phil Harvey on March 02, 2015, 07:36:47 AM
I've got good news and bad news.

The bad news is that these images are not corrupted in the usual way, so they can't be repaired by the fix_corrupted_nef utility.  This is a different form of corruption that I haven't seen before.

The good news is that the RAW images may be recovered using ExifTool.

After some work, I determined that it seems only the SubIFD2 CFA tags have been corrupted.  Fixing them with this command makes the images so that I can view them with Apple Preview:

exiftool -subifd2:cfarepeatpatterndim="2 2" -subifd2:cfapattern2="0 1 1 2" -subifd2:cfapattern#="2 2 0 1 1 2" FILE

where FILE is one or more file and/or directory names.  (Impressive images, by the way!)

ExifTool will automatically preserve the original (corrupted in this case) images with a "_original" added to the extension.

After this command is run, you should hopefully be able to open your NEF images again.

- Phil
Title: Re: Nikon D810 corrupted files
Post by: vibra on March 03, 2015, 03:22:32 PM
Hi Phil,
It works perfectly  :)
Thank you very much !