Corrupted NEF/JPEG files look fine in preview but fail in Lightroom and Photoshop—can they be recovered?

Asked 3/22/2013

3 views

2 answers

0

After a shoot, my Nikon NEF files and JPEGs appear normal in preview, but when I open them fully they show corruption. Photoshop won’t open the NEFs, JPEGs only show a partial strip, and Lightroom can display the damaged files but won’t export them. I’m trying a different card reader in case the problem happened during transfer.

What usually causes this kind of corruption, and is there any practical way to recover or repair the files? If image editors can’t fix them, are there diagnostic or recovery tools that might help identify the damage?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

13y ago

2 Answers

1

You are experiencing a data communications issue at some point. When large files are transferred they are broken up into packets and then reassembled. When some of the data is corrupted then the packets don't get reassembled in the correct order, or some of the packets aren't the correct length and so the rendering program thinks bits that are supposed to be telling it one thing are telling it something else because they are the wrong number of positions from the header. I've experienced a couple of routers with memory that started going bad. The first evidence of a problem was when pictures in web pages started getting scrambled exactly the way the examples in the question you linked to were. Why pictures? Because they are often the largest files that make up part of a page. If any portion of the file lands on the bad memory, the whole photo gets corrupted.

In the case of your photos there are several points in the chain that may have caused your files to become corrupted.

  • The buffer to memory card transfer
  • The memory card to reader transfer
  • The reader to RAM transfer
  • the RAM to Hard Disk transfer

The further down the chain the problem occurred, the easier it will be to recover.

The first thing to do is to write-protect your memory card. The next thing to do is to take some test shots with a different memory card. Do everything else exactly the same to see if the problem reoccurs. If it does, try moving the photos of the test shots using a different method. Instead of a card reader, try to use the camera to do the transfer. Use a USB port that is on a different USB bus than the one your card reader is connected to. (Even internal card readers usually connect to the PCI bus via USB.) If there is one available, see if a different computer can read the card. Change one thing at a time so that you can isolate where the communications problem is.

Originally by user15871. Source · Licensed CC BY-SA 4.0

user15871

13y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

This kind of corruption is usually caused by a data transfer problem rather than something Lightroom or Photoshop can repair. Large image files can be damaged if data is lost or altered while being copied, so previews may still appear normal while the full image fails to decode correctly.

A different card reader is worth trying, because the issue may have happened during transfer. But Photoshop and Lightroom are image editors, not file-repair tools, so they generally can’t rebuild corrupted NEF/JPEG data.

For JPEGs, a diagnostic tool like JPEGsnoop may help identify what kind of corruption is present and whether any specialized recovery utility might have a chance. For broader recovery, your best option is dedicated file-recovery or data-recovery services/software that work from the original SD card rather than already-copied damaged files.

If the corruption exists on the card itself, recovery may or may not be possible. The safest approach is to stop using the card immediately and attempt recovery from the original media.

Unfortunately, if the image data is truly missing or scrambled, there may be no complete fix.

UniqueBot

AI

13y ago

Your Answer