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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #75 on: May 15, 2013, 07:39:54 AM »
I can add support for the D7100 if you send me a full set of original and corrupted images:

12 bit uncompressed
12 bit compressed
12 bit lossless compressed
14 bit uncompressed
14 bit compressed
14 bit lossless compressed

(note: the full set is 12 images:  these 6 images copied directly from the memory card, plus the same 6 as corrupted by the Nikon software)

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

TofuCivic

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #76 on: May 16, 2013, 01:09:30 AM »
Sent.  I had issues finding an email account so I sent links to my google drive instead.  Let me know if you have issues downloading them.  To show my appreciation for your time and help, a donation is on it's way.

How

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #77 on: May 16, 2013, 07:56:35 AM »
Hi How,

I got the samples, thanks.  The fix_corrupted_nef utility has now been updated to support the D7100.

- 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 #78 on: May 16, 2013, 10:52:02 PM »
Thanks, Phil.  I gave it a try tonight and it works flawlessly. :)

Cheers,
How 

moomah

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #79 on: June 24, 2013, 06:52:59 AM »
is this program for correcting corrupted .NEF's compatible with the d90?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #80 on: June 24, 2013, 07:20:07 AM »
Note that this utility only fixes NEF images corrupted by Nikon software.  I haven't yet seen a D90 image that has been corrupted like this.  This is an older camera that I would have thought wouldn't be affected by this bug.

So the answer is no, but I can add support for any Nikon camera if I have a set of corrupted and uncorrupted samples.

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

moomah

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #81 on: June 24, 2013, 01:35:34 PM »
how do I upload the corrupted/uncorrupted photos ?

my photos were corrupted using the nikon transfer software.


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #82 on: June 24, 2013, 01:46:02 PM »
See this post in this thread for details on how to send me samples.

What software and what version were you using?

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

moomah

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #83 on: June 24, 2013, 02:16:08 PM »
it was Nikon ViewNX 1.5.2.

I think i only require the 12 bit images the D90 isnt capable of 14 bit.
how do i get 3 versions of the same file?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #84 on: June 24, 2013, 06:33:27 PM »
Just shoot as many RAW formats as supported by the D90, then copy the original images directly from the memory card and also use ViewNX 1.5.2 to download the images, then send them all to me.

- Phil

Edit:  There may be something else going on here, but I'll let you know.  I did some checking and the D90 seems to have been released in 2008, but ViewNX 1.5.2 was released 2010, so there should be no problem with this (newer software should work fine with older cameras).  If there were, then there would have been a massive outcry at the time.
...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 ($).

BenB

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #85 on: August 12, 2013, 05:27:25 PM »
Hi Phil, sorry I am maybe a novice but I didn't find the way to make work your tool. I have A D600 with pb of corrupted files + a MBPro 10.8.4. Here is what I have :

Last login: Mon Aug 12 22:51:46 on ttys000
MacBook-Pro-de-Ben:~ ben$
MacBook-Pro-de-Ben:~ ben$ /Users/ben/Desktop/fix_corrupted_nef/fix_corrupted_nef.pl
---- fix_corrupted_nef version 1.9 ----
Fixes Nikon D4/D600/D800/D800E/D3200/D5200/D7100 NEF images that
have been corrupted by transferring with older Nikon software.

Syntax:  fix_corrupted_nef FILE [FILE...]

MacBook-Pro-de-Ben:~ ben$ exiftool fix_corrupted_nef
-bash: exiftool: command not found
MacBook-Pro-de-Ben:~ ben$ fix_corrupted_nef
-bash: fix_corrupted_nef: command not found
MacBook-Pro-de-Ben:~ ben$ /Users/ben/Desktop/NEF04/DSC_0001.NEF
-bash: /Users/ben/Desktop/NEF04/DSC_0001.NEF: Permission denied
MacBook-Pro-de-Ben:~ ben$ fix_corrupted_nef /Users/ben/Desktop/NEF04/DSC_0001.NEF
-bash: fix_corrupted_nef: command not found
MacBook-Pro-de-Ben:~ ben$

Can you help me ?
Thanks
Ben

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #86 on: August 12, 2013, 08:27:42 PM »
Hi Ben,

Just download and expand the fix_corrupted_nef for Mac and follow the instructions in the included README.txt

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

BenB

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #87 on: August 13, 2013, 09:35:34 AM »
Hi Phil,
It is what I've done -> cf. my first post -> fix_corrupted_nef is launched but why I put the NEF file, it doesn't process it.
Sure I am doing something wrong but what ?
Thanks for helping
Ben

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16519
    • ExifTool Home Page
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #88 on: August 13, 2013, 10:35:39 AM »
Hi Ben,

If you follow the directions, before you press RETURN your command line should look something like this to fix a single NEF:

Code: [Select]
MacBook-Pro-de-Ben:~ ben$ /Users/ben/Desktop/fix_corrupted_nef/fix_corrupted_nef.pl /Users/ben/Desktop/NEF04/DSC_0001.NEF
or like this to fix all NEF's in a folder:

Code: [Select]
MacBook-Pro-de-Ben:~ ben$ /Users/ben/Desktop/fix_corrupted_nef/fix_corrupted_nef.pl /Users/ben/Desktop/NEF04
- 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 ($).

BenB

  • Newbie
  • *
  • Posts: 3
Re: Nikon D800 NEFs ==> SubIFD Tags corrupted ==> Rewrite possible?
« Reply #89 on: August 15, 2013, 03:55:39 PM »
OK, Thanks, it's working perfectly !
It's sincerely nice to get back some lost nef files...It was disappointing to be reduce to jpeg basic with a D600.
Thank you
Benjamin