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?
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 (https://exiftool.org/faq.html#Q20) for details.
- Phil
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 (https://exiftool.org/faq.html#Q20) 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 (https://exiftool.org/forum/index.php?topic=4019.0) 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.