ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: jonathan_seattle on December 13, 2011, 05:00:10 PM

Title: Problem reading IPTC in a few files
Post by: jonathan_seattle on December 13, 2011, 05:00:10 PM
Greetings,

ExifTool gives the following Warning when reading a file:

Unrecognized IPTC record 0, subsequent records ignored.

Other tools, including Windows Explorer and Lightroom, have no trouble reading the rest of the IPTC data.

The file is only 3mB but it won't upload as an attachment. Any tool I use to shrink it makes the bug go away.  Can I email it?

Thanks Jonathan
Title: Re: Problem reading IPTC in a few files
Post by: Phil Harvey on December 13, 2011, 07:08:48 PM
Hi Jonathan,

Record 0 in invalid.  I'm guessing the metadata was corrupted somehow.  Or do you have more images like this?

I could just ignore the invalid record (as apparently Explorer and Lightroom do), at the risk of reading more garbage.  Perhaps this is what I should do.

You an email the image to me (philharvey66 at gmail.com) and I'll take a look.

- Phil
Title: Re: Problem reading IPTC in a few files
Post by: jonathan_seattle on December 13, 2011, 07:44:32 PM
Thanks for the email. I sent you a sample file.  I have 170 files like this. The file data isn't corrupted, so I'd encourage you to post a warning for the unrecognized record but then continue on looking for normal IPTC data. Thanks.
Title: Re: Problem reading IPTC in a few files
Post by: jonathan_seattle on December 14, 2011, 01:33:52 AM
As an alternative, is there a way for me to delete the offending Record 0?

Thanks.

Jonathan
Title: Re: Problem reading IPTC in a few files
Post by: Phil Harvey on December 14, 2011, 07:43:44 AM
Hi Jonathan,

I got the image, thanks.

With the current version of Exiftool, there is no way to delete the unrecognized IPTC records since IPTC parsing is terminated at the offending record.

However, I will change Exiftool 8.73 to read past these unknown records (after issuing a warning).  With this version, the following command will delete any unknown IPTC information from the file:

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

My current plan is to release version 8.73 on Saturday.

- Phil
Title: Re: Problem reading IPTC in a few files
Post by: jonathan_seattle on December 14, 2011, 06:11:05 PM
Thanks Phil.  I'll be eagerly awaiting 8.73.