修复损坏的尼康NEF图像。使用较新版本的Nikon Transfer 1或较旧版本的ViewNX 2(可能还会捕获NX 2)从较新的尼康相机下载NEF图像可能会导致损坏的NEF图像无法再打开。此实用程序修复D4、DF、D600、D610、D750、D800、D800E、D810、D850、D3200、D5200、D5300、D5500、D7100、D7200、D7500和Z50的这些损坏的NEF映像。它不会修复因存储卡问题、磁盘错误或其他软件而损坏的图像。[众所周知,Nikon NX-D也会损坏图像(可能与更改文件字节顺序有关!),但此实用程序无法修复这些问题。]。警告!如果您在使用此实用程序修复损坏的图像之前使用任何其他软件修改损坏的图像,则原始图像数据可能会永久丢失!(例如,如果您在下载后使用View NX2对图像进行地理标记,则可能会发生这种情况。)。按照以下说明在Windows或Mac/Linux系统上运行此实用程序。如果您有任何问题或意见,请在ExifTool论坛中查看此帖子。[请注意,尼康不会从他们的错误中吸取教训,两年前,旧版尼康Transfer和D5000(阅读此处)也出现了类似的问题,而新的尼康NX-D软件存在其他腐败问题。教训是:不要使用Nikon Transfer或任何其他修改文件的工具来下载您宝贵的图像!]。令人遗憾的是,这个尼康软件漏洞只会惩罚忠实的尼康拥有者(因为它只影响那些拥有以前相机上的尼康软件较旧副本的人),但尼康客户支持除了建议您联系存储卡制造商以查看是否可以恢复原始图像外,并没有提供任何帮助。Windows用户。下载并打开“fix_corrupt_nef_win.zip”,然后将“fix_corrupt_nef.exe”应用程序移动到硬盘上。将损坏的NEF文件和/或文件夹拖放到“fix_corrupt_nef.exe”应用程序中。应该会打开命令窗口,并提示以下消息:“压缩图像的位深度(12或14)[14]?”键入“12”或“14”,然后按Return键。如果您不知道压缩的NEF图像的位深度,或者如果您混合了12位和14位的压缩图像,或者如果您只有未压缩的NEF图像,只需键入“14”(或直接按Return键)。如果这对于某些图像是错误的,您将无法打开固定的图像(但您可以删除这些图像,并在以后使用其他位深度重新生成它们)。请注意,对于不能更改压缩的NEF位深度的模型,该数字将被忽略。应用程序现在应该运行并在每个原始NEF图像旁边创建一个“固定”文件夹。此文件夹包含与原始图像同名的固定NEF图像。验证您是否可以打开修复的NEF图像。如果无法打开任何图像,请删除它们并返回到步骤2,但这次在步骤3中选择另一个位深度。(只会重新生成您删除的图像,其他图像不会被触摸。)。幸运的是,尼康软件造成的混乱现在得到了修复,你所有的NEF图像现在都恢复了!如果你觉得很高兴,一定要给我寄一笔捐款,可以从ExifTool主页上完成。--菲尔·哈维。Mac/Linux用户。下载“fix_corrupt_nef.zip”并将其解压缩到硬盘上的一个目录中。打开终端窗口。(在Mac上,启动/应用程序/实用程序/终端)。将“fix_corrupt_nef.pl”拖放到终端窗口。(注意:分发的“lib”文件夹必须与“fix_corrupt_nef.pl”应用程序位于同一文件夹中。如果您将“fix_corrupt_nef.pl”移至另一个文件夹,则在运行之前还必须将其“lib”文件夹移至相同位置。)。将损坏的NEF文件和/或文件夹拖放到终端窗口。选择终端窗口,然后按键盘上的Return键。您应该会看到以下提示:“压缩图像的位深度(12或14)[14]?”键入“12”或“14”,然后按Return键。如果您不知道压缩的NEF图像的位深度,或者如果您混合了12位和14位的压缩图像,或者如果您只有未压缩的NEF图像,只需键入“14”(或直接按Return键)。如果这对于某些图像是错误的,您将无法打开固定的图像(但您可以删除这些图像,并在以后使用其他位深度重新生成它们)。请注意,对于不能更改压缩的NEF位深度的模型,该数字将被忽略。现在,“fix_corrupt_nef.pl”应用程序应该会运行,并在每个原始NEF图像旁边创建一个“Fixed”文件夹。此文件夹包含与原始图像同名的固定NEF图像。验证您是否可以打开修复的NEF图像。如果无法打开任何图像,请删除它们并返回到步骤3,但这次在步骤6中选择另一个位深度。(只会重新生成您删除的图像,其他图像不会被触摸。)。幸运的是,尼康软件造成的混乱现在得到了修复,你所有的NEF图像现在都恢复了!
如果你觉得很高兴,一定要给我寄一笔捐款,可以从ExifTool主页上完成。
--菲尔·哈维。
修订版本。
2020-01-27-3.3版-增加了对Z50镜像的支持。
2019-01-09-版本3.2-添加了对D7500映像的支持。
2017-11-03-版本3.1-添加了对D850映像的支持。
2016-09-14-版本3.0-添加了对D5300映像的支持。
2016-08-04-版本2.9-添加了对D500 DX和1.3X映像的支持。
2015-09-25-版本2.8-添加了对D7200映像的支持。
2015-08-31-版本2.7-添加了对D5500映像的支持。
2015-08-13-版本2.6-添加了对其他D810图像大小的支持。
2015-08-11-版本2.5-添加了对D810 FX和DX映像的支持。
2014-11-15-2.4版-添加了对D750 FX、DX和1.2x图像的支持,并改进了对损坏图像的识别。
2014-10-19-版本2.3-添加了对D4 1.2x和5:4作物的支持。
2014-10-10-版本2.2-添加了对D4 DX映像的支持。
2014-09-02-2.1版-添加了对DF FX和DX映像的支持。
2014-05-17-2.0版-添加了对D610映像的支持。
2013-08-01-版本1.9-添加了对D600电影剪辑图像的支持。
2013-06-17-版本1.8-添加了对D7100 1.3x裁剪图像的支持。
2013-06-12-版本1.7-添加了对D5200映像的支持。
2013-05-16-版本1.6-添加了对D7100图像和D800 5:4裁剪图像的支持。
2013-03-26-版本1.5-添加了对D600 DX映像的支持。
2013-01-15-版本1.4-添加了对D3200映像的支持。
2013-01-07-版本1.3-添加了对D800 DX映像的支持。
2012-11-03-版本1.2-添加了对D600 FX映像的支持。
2012-09-26-版本1.1-添加了对D4 FX映像的支持。
2012-09-08-版本1.0-初始版本(修复D800 FX映像)。
创建于9月。2012年8月8日
Fix Corrupted Nikon NEF Images
Downloading NEF images from newer Nikon cameras with Nikon Transfer 1 or older versions of ViewNX 2 (and probably Capture NX 2) may result in corrupted NEF images that can no longer be opened.
This utility repairs these corrupted NEF images for the D4, Df, D600, D610, D750, D800, D800E, D810, D850, D3200, D5200, D5300, D5500, D7100, D7200, D7500 and Z50.
It DOES NOT REPAIR images corrupted by memory card problems, disk errors, or other software. [Nikon NX-D has also been known to corrupt images (possibly related to changing the file byte ordering!), but these problems are not fixed by this utility.]
Warning! If you modify the corrupted images with any other software before fixing them with this utility, then the raw image data may be permanently lost! (This may happen for instance if you use View NX2 to geotag the images after downloading.)
Follow the instructions below for running this utility on Windows or Mac / Linux systems.
See this thread in the ExifTool forum if you have any questions or comments.
[Note that Nikon doesn't learn from their mistakes, and a similar problem happened 2 years earlier with an older version of Nikon Transfer and the D5000 (read here), and the new Nikon NX-D software has other corruption issues. The moral is: Don't use Nikon Transfer or any other utility that modifies the file to download your precious images!]
It is very sad that this Nikon software bug penalizes only loyal Nikon owners (since it affects only people who had an older copy of the Nikon software from a previous camera), yet Nikon customer support provides no help other than suggesting that you contact your memory card manufacturer to see if the original images can be restored.
Windows Users
- Download and open "fix_corrupted_nef_win.zip", then move the "fix_corrupted_nef.exe" application onto your hard disk.
- Drag and drop the corrupted NEF files and/or folders onto the "fix_corrupted_nef.exe" application.
- A command window should open and prompt with this message:
"Bit depth of compressed images (12 or 14) [14]?"
Type either "12" or "14", then press RETURN. If you don't know the bit depth of your compressed NEF images, or if you have mixed 12 and 14-bit compressed images, or if you have only uncompressed NEF images, just type "14" (or simply press RETURN). If this is wrong for some images, you will not be able to open the fixed images (but you can delete these and re-generate them with the other bit depth later). Note that this number is ignored for models where the compressed NEF bit depth can not be changed. - The application should now run and create a "fixed" folder beside each of the original NEF images. This folder contains the fixed NEF images with the same names as the originals.
- Verify that you can open the fixed NEF images. If you can't open any of the images, delete them and go back to step 2, but this time select the other bit depth in step 3. (Only the images you deleted will be re-generated, the others won't be touched.)
With any luck, the mess caused by the Nikon software is now fixed, and all of your NEF images are now restored!
If you are feeling so happy that you absolutely must send me a donation, this can be done from the ExifTool home page.
- Phil Harvey
Mac / Linux Users
- Download and expand "fix_corrupted_nef.zip" into a directory on your hard disk.
- Open a Terminal window. (on Mac, launch /Applications/Utilities/Terminal)
- Drag and drop "fix_corrupted_nef.pl" onto the Terminal window. (Note: The distributed "lib" folder must exist in the same folder as the "fix_corrupted_nef.pl" application. If you moved "fix_corrupted_nef.pl" to a different folder you must also move its "lib" folder to the same place before running.)
- Drag and drop the corrupted NEF files and/or folders onto the Terminal window.
- Select the Terminal window, then press RETURN on the keyboard.
- You should see this prompt:
"Bit depth of compressed images (12 or 14) [14]?"
Type either "12" or "14", then press RETURN. If you don't know the bit depth of your compressed NEF images, or if you have mixed 12 and 14-bit compressed images, or if you have only uncompressed NEF images, just type "14" (or simply press RETURN). If this is wrong for some images, you will not be able to open the fixed images (but you can delete these and re-generate them with the other bit depth later). Note that this number is ignored for models where the compressed NEF bit depth can not be changed. - The "fix_corrupted_nef.pl" application should now run and create a "fixed" folder beside each of the original NEF images. This folder contains the fixed NEF images with the same names as the originals.
- Verify that you can open the fixed NEF images. If you can't open any of the images, delete them and go back to step 3, but this time select the other bit depth in step 6. (Only the images you deleted will be re-generated, the others won't be touched.)
With any luck, the mess caused by the Nikon software is now fixed, and all of your NEF images are now restored!
If you are feeling so happy that you absolutely must send me a donation, this can be done from the ExifTool home page.
- Phil Harvey
Revisions
2020-01-27 - Version 3.3 - Added support for Z50 images
2019-01-09 - Version 3.2 - Added support for D7500 images
2017-11-03 - Version 3.1 - Added support for D850 images
2016-09-14 - Version 3.0 - Added support for D5300 images
2016-08-04 - Version 2.9 - Added support for D500 DX and 1.3x images
2015-09-25 - Version 2.8 - Added support for D7200 images
2015-08-31 - Version 2.7 - Added support for D5500 images
2015-08-13 - Version 2.6 - Added support for other D810 image sizes
2015-08-11 - Version 2.5 - Added support for D810 FX and DX images
2014-11-15 - Version 2.4 - Added support for D750 FX, DX and 1.2x images and improved recognition of corrupted images
2014-10-19 - Version 2.3 - Added support for D4 1.2x and 5:4 crops
2014-10-10 - Version 2.2 - Added support for D4 DX images
2014-09-02 - Version 2.1 - Added support for Df FX and DX images
2014-05-17 - Version 2.0 - Added support for D610 images
2013-08-01 - Version 1.9 - Added support for D600 movie-cropped images
2013-06-17 - Version 1.8 - Added support for D7100 1.3x cropped images
2013-06-12 - Version 1.7 - Added support for D5200 images
2013-05-16 - Version 1.6 - Added support for D7100 images and D800 5:4 cropped images
2013-03-26 - Version 1.5 - Added support for D600 DX images
2013-01-15 - Version 1.4 - Added support for D3200 images
2013-01-07 - Version 1.3 - Added support for D800 DX images
2012-11-03 - Version 1.2 - Added support for D600 FX images
2012-09-26 - Version 1.1 - Added support for D4 FX images
2012-09-08 - Version 1.0 - Initial release (fixes D800 FX images)
Created Sept. 8, 2012