I just read the tags from a folder structure of 5000 images, and approx 100 of them have an "ExifTool: Warning" field with errors such as:
Bad IPTC data tag (marker 0x72)
Bad IPTC data tag (marker 0x67)
Bad IPTC data tag (marker 0x73)
Bad IPTC data tag (marker 0x26)
Bad IPTC data tag (marker 0x29)
Is there some way of finding out what these exact errors are / which specific fields they apply to? Some table of error codes someplace? Once I know which fields are damaged, is it possible to write to those fields again and wipe out the problem?
If you use the -v3 option you should get more information. See FAQ 20 for information about rebuilding corrupt metadata.
- Phil
Ah, I see the error seems to appear in the same spot in all the files I've checked so far:
| | Prefs = 0:0:0:-00001
| | - Tag 0x00dd, IPTCApplication record (12 bytes, string[0,64]):
| | c38e1: 30 3a 30 3a 30 3a 2d 30 30 30 30 31 [0:0:0:-00001]
| | Warning = Bad IPTC data tag (marker 0x29)
ExifToolVersion = 9.05
The next line after that is the beginning of the next file reference, so does this mean it's the Prefs record that is damaged? Or is it:
| | ReleaseDate =
which is the next tag listed in the undamaged files...
Hard to say. Could you email me a sample to look at? (philharvey66 at gmail.com)
I'm really busy at the moment but I should be able to look at it tomorrow afternoon.
- Phil
Sent, with email subject: Sample file with bad IPTC
I got the sample. With the -v4 dump you can see the full IPTC data dump. It seems that there is just a bit of garbage after the last IPTC entry (Prefs). So I don't think anything was lost.
- Phil
When I run the removal I get:
exiftool -iptc:Prefs= "filename.tif"
Warning: [minor] Unrecognized data in IPTC trailer - filename.tif