ExifTool support for raw images from Nikon D700

Started by Alexander, April 20, 2015, 09:21:41 PM

Previous topic - Next topic

Alexander

Hi! I have a lot of Nikon raw images (.NEF) that are corrupted due to me opening them with Nikon NX-D a while back. I re-downloaded the software and reverted the images to original state, but they are still not opening correctly in other softwares like Capture One 8. (But they do open in Adobe Photoshop and Finder).
I used the ExifTool, but it doesn't support the Nikon D700, and I was hoping someone could help me to get that? I would appreciate any help I could get!  :)

Phil Harvey

If you send me a sample I'll take a look.   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 ($).

Alexander

Thank you so much Phil!

I've added your e-mail to a Dropbox folder with a selection of these raw-files.

Phil Harvey

#3
Wow.  This is unfortunate.  The bad news is that the byte ordering of these files has been changed.  The camera writes big-endian byte order, but these NEF files are now little-endian.  This is something that has always really scared me about Nikon software, because it is very difficult to do this without corrupting the proprietary information (I can't over-emphasize how dangerous this is!).  For this reason, ExifTool can not be used to change the byte order of these files, so it can't be used to fix this problem.

The good news is that the images are still viewable by Apple utilities, so there is some hope that you may be able to still work with them using other software.

Also, you can use ExifTool to extract the full-sized JPEG preview from these files.  For most of the files this preview is called JpgFromRaw, but for one sample it is the OtherImage.  You can use this command to extract them both:

exiftool -jpgfromraw -otherimage -b -W %d/%f_%t.%s DIR

- Phil

Edit:  Added back note about OtherImage, lost somehow in a cut-n-paste
...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 ($).

Alexander

It's so surprising that official Nikon software actually did this! No software should change raw-files, especially like that.

Thank you so much for taking a look, and for giving me all this information and tips :)

- Alex