[Originally posted by nonsense on 2008-03-19 13:27:17-07]
I encountered a problem when I tried to edit the metadata of a few files sent to me.
These are in TIFF-format.
The error message reads: Bad IFD or truncated file in IFD1
It seems to be a problem with the keywords tag, because it doesn't change when I try to rewrite it.
I have tried the -all= option, but with no success.
Thoughts?
[Originally posted by nonsense on 2008-03-19 13:28:54-07]
sorry double post. please remove
[Originally posted by exiftool on 2008-03-19 14:54:26-07]
This is a bit tricky because you are dealing with a TIFF image.
It sounds like there is something wrong with IFD1 in the image
(likely a bad IFD1 pointer). Because the image data is contained
in IFD0 of a TIFF image, you can't delete all tags from IFD0
(so -all= didn't do what you wanted). The same goes for
IFD1, IFD2, etc in a TIFF file, which can be used to store
multiple images in a TIFF file. But to write this image with
exiftool, you must delete IFD1 (with -ifd1:all=). If you
try this, you will get an error saying "Deleting IFD1 also
deletes subsequent IFD's and possibly image data", but
this can be ignored with the -m if you want to
assume the responsibility of possibly deleting subsequent
images.
I hope this helps explain things a bit.
- Phil