Problem reading IPTC in a few files

Started by jonathan_seattle, December 13, 2011, 05:00:10 PM

Previous topic - Next topic

jonathan_seattle

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jonathan_seattle

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.

jonathan_seattle

As an alternative, is there a way for me to delete the offending Record 0?

Thanks.

Jonathan

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jonathan_seattle

Thanks Phil.  I'll be eagerly awaiting 8.73.