Error reading image data for changing time

Started by asteroid, May 12, 2013, 06:01:09 AM

Previous topic - Next topic

asteroid

Hi Phil,

I am using exiftool version 9.28 on Mac.   I had used to software to add one hour for time zone for a batch of nef files of Nikon D800E, by using command line, "exiftool -AllDates+=1 DIR", and it worked.  But on another day, I used the same command for another batch of .nef files (taken in the same trip), but it always reported that "Error: Error reading image data".  But the tools still work for .jpeg files.  Do u know what I had went wrong?

Besides, I can view all .nef files in Nikon ViewNX 2.7.4, with no problem.  But using Apple preview or Google Picasa, lower parts of some nef files are missing.  Is it due to compatibility problem?

Thank you.

Regards,
Eric

Phil Harvey

Hi Eric,

It sounds like your images have been corrupted (could be the file was truncated).  If you want to send one to me (philharvey66 at gmail.com) I can take a look.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

asteroid

Hi Phil,

I had sent a file to your email address.  Please take a look.  Thank you.

Regards,
Eric

Phil Harvey

Hi Eric,

I got the image, thanks.  The file is truncated, and there is about 6 MB of raw image data missing from this image.  The file size is about 33 MB, but it should be closer to 39 or 40 MB.  Any software that displays this image properly is just displaying the embedded 1.5 MB JPEG image and not processing the RAW data.  ExifTool will extract this JpgFromRaw for you if you want, but there isn't anything that can be done to recover the lost raw data.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

Quote from: asteroid on May 12, 2013, 06:01:09 AM

Besides, I can view all .nef files in Nikon ViewNX 2.7.4,

In NikonViewNX you have to click on the the little square with "RAW" in it to view raw files.  It should turn yellow.  Or you can switch it on under View --> viewer --> Display Raw image.  Maybe try it with one of the broken nef files. 

asteroid

Quote from: Phil Harvey on May 13, 2013, 07:24:01 AM
Hi Eric,

I got the image, thanks.  The file is truncated, and there is about 6 MB of raw image data missing from this image.  The file size is about 33 MB, but it should be closer to 39 or 40 MB.  Any software that displays this image properly is just displaying the embedded 1.5 MB JPEG image and not processing the RAW data.  ExifTool will extract this JpgFromRaw for you if you want, but there isn't anything that can be done to recover the lost raw data.

- Phil

Hi Phil,

thank you for looking into this.   I think my card is corrupted because of a bad card reader (as a gift from camera shop).   When I connected the card thru the card reader to the MacBook Pro, it said that the card is not ejected probably and no files can be read.  Originally I thought this is due to the camera, or my mis-ejection of card.  But the problem happened again.  Now, I suspected this was due to the card reader, and I passed the card to my friend for recovery.

I still got the corrupted CF card.  Which software do you recommend for better recovery with higher chance?  Thanks.

Regards,
Eric



asteroid

Quote from: Alan Clifford on May 13, 2013, 07:38:48 AM
Quote from: asteroid on May 12, 2013, 06:01:09 AM

Besides, I can view all .nef files in Nikon ViewNX 2.7.4,

In NikonViewNX you have to click on the the little square with "RAW" in it to view raw files.  It should turn yellow.  Or you can switch it on under View --> viewer --> Display Raw image.  Maybe try it with one of the broken nef files.

Hi Alan,

Thanks.   After trying to click the "RAW" box, ViewNX really said it cannot recognized the format.  So I really not viewed the RAW data in the past, but the embedded JPEG. :( :(

Phil Harvey

I can't recommend any specific recovery software, I've never used it myself.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

asteroid

Hi Phil,
Thanks anyway.

Hi other readers,
If you have good recommendation, please give your suggestion.  Thank you.

Regards,
Eric

asteroid

Quote from: Phil Harvey on May 13, 2013, 07:24:01 AM
Hi Eric,

I got the image, thanks.  The file is truncated, and there is about 6 MB of raw image data missing from this image.  The file size is about 33 MB, but it should be closer to 39 or 40 MB.  Any software that displays this image properly is just displaying the embedded 1.5 MB JPEG image and not processing the RAW data.  ExifTool will extract this JpgFromRaw for you if you want, but there isn't anything that can be done to recover the lost raw data.

- Phil

Hi Phil,
I tried to looked at your examples in the doc for using JpgFromRaw.  But the example listed is quite difficult

exiftool -if '$jpgfromraw' -b -jpgfromraw -w %d%f_%ue.jpg -execute -if '$previewimage' -b -previewimage -w %d%f_%ue.jpg -execute -tagsfromfile @ -srcfile %d%f_%ue.jpg -overwrite_original -common_args --ext jpg DIR
[Advanced] Extract JpgFromRaw or PreviewImage from all but JPG files in DIR, saving them with file names like image_EXT.jpg, then add all meta information from the original files to the extracted images. Here, the command line is broken into three sections (separated by -execute options), and each is executed as if it were a separate command. The -common_args option causes the --ext jpg DIR arguments to be applied to all three commands, and the -srcfile option allows the extracted JPG image to be the source file for the third command (whereas the RAW files are the source files for the other two commands)."

If I would like to extract JPG from the corrupted RAW file with all other meta info interacted, do you mind to advise me the full command line?  Thanks.

- Eric

Phil Harvey

Hi Eric,

The command is:

exiftool -b -jpgfromraw -w jpg DIR

where DIR is the name of a directory containing the NEF images.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

asteroid