ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Gnarlodious on September 21, 2012, 09:19:52 PM

Title: Error "Warning: Duplicate IPTC-NAA tag in IFD0"
Post by: Gnarlodious on September 21, 2012, 09:19:52 PM
I have about 50 scanned images out of 1500 that send error "Warning: Duplicate IPTC-NAA tag in IFD0". Is there a way to repair these files? Searched Google but nothing on this error.
Title: Re: Error "Warning: Duplicate IPTC-NAA tag in IFD0"
Post by: Phil Harvey on September 22, 2012, 10:24:22 AM
I'd need a sample for testing to be sure, but you could try this:

exiftool -iptc:all= -tagsfromfile @ -iptc:all DIR

I'm not sure if this will work.  If not, doing it in 2 steps should work:

exiftool -iptc:all= -o temp DIR
exiftool -tagsfromfile DIR/%f.%e -iptc:all temp


After this, the files in the "temp" directory should be OK.

- Phil
Title: Re: Error "Warning: Duplicate IPTC-NAA tag in IFD0"
Post by: Gnarlodious on September 22, 2012, 07:20:54 PM
Thanks, the first one worked. I added  -overwrite_original and lost no data. What an incredibly utilitarian peice of software you have written!
Title: Re: Error "Warning: Duplicate IPTC-NAA tag in IFD0"
Post by: Gnarlodious on September 23, 2012, 10:30:05 AM
One more question. Is there a way to test the integrity of metadata without writing to the file?
Title: Re: Error "Warning: Duplicate IPTC-NAA tag in IFD0"
Post by: Phil Harvey on September 24, 2012, 07:24:37 AM
ExifTool is not designed as a validation tool.  It reports a number of errors when reading, and more when writing, but it doesn't report everything.

- Phil