ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: asteroid on May 12, 2013, 06:01:09 AM

Title: Error reading image data for changing time
Post by: asteroid on May 12, 2013, 06:01:09 AM
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
Title: Re: Error reading image data for changing time
Post by: Phil Harvey on May 12, 2013, 12:11:42 PM
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
Title: Re: Error reading image data for changing time
Post by: asteroid on May 12, 2013, 02:21:52 PM
Hi Phil,

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

Regards,
Eric
Title: Re: Error reading image data for changing time
Post by: 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
Title: Re: Error reading image data for changing time
Post by: 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. 
Title: Re: Error reading image data for changing time
Post by: asteroid on May 13, 2013, 11:24:19 AM
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


Title: Re: Error reading image data for changing time
Post by: asteroid on May 13, 2013, 11:26:17 AM
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. :( :(
Title: Re: Error reading image data for changing time
Post by: Phil Harvey on May 13, 2013, 11:30:29 AM
I can't recommend any specific recovery software, I've never used it myself.

- Phil
Title: Re: Error reading image data for changing time
Post by: asteroid on May 13, 2013, 11:35:06 AM
Hi Phil,
Thanks anyway.

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

Regards,
Eric
Title: Re: Error reading image data for changing time
Post by: asteroid on May 13, 2013, 11:50:38 AM
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
Title: Re: Error reading image data for changing time
Post by: Phil Harvey on May 13, 2013, 11:53:42 AM
Hi Eric,

The command is:

exiftool -b -jpgfromraw -w jpg DIR

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

- Phil
Title: Re: Error reading image data for changing time
Post by: asteroid on May 13, 2013, 01:37:19 PM
Phil,

Thanks again.

- Eric