Truncated ExifIFD directory

Started by krige, February 13, 2011, 07:12:23 PM

Previous topic - Next topic

krige

I am trying to put some geodata information in an image but I am getting the following errors:

Warning: Duplicate ModifyDate tag in IFD0
Warning: Deleted bad ExifIFD directory
Error: Truncated ExifIFD directory

Does anybody know what could be the problem and how can I fix it?

Phil Harvey

This is a serious structural problem with the metadata in your image.  If it is a JPEG image you can rebuild the metadata from scratch to salvage what remains.  See FAQ number 20 for details.

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

1024mb

#2
Quote from: Phil Harvey on February 14, 2011, 07:33:21 AM
This is a serious structural problem with the metadata in your image.  If it is a JPEG image you can rebuild the metadata from scratch to salvage what remains.  See FAQ number 20 for details.

- Phil

I was having the same problem and solved it with what you said in the FAQ. I only have one question, is there any way for exiftool to examine files for corrupted ones and then tell it to repair them in a single command?
Thanks.

EDIT: OK, I saw your post on another topic to print the corrupt files and I just added "-all= -tagsfromfile @ -all:all -unsafe -icc_profile" at the end just before the DIR and it worked. Sorry I opened this topic.