AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.08.24 07:29 "[Tiff] IPTC tag", by Joris Van Damme
2006.08.24 21:34 "Re: [Tiff] IPTC tag", by Chris Cox
2006.08.25 11:15 "Re: [Tiff] IPTC tag", by Joris Van Damme
2006.08.25 15:36 "Re: [Tiff] IPTC tag", by Bob Friesenhahn
2006.08.25 15:56 "Re: [Tiff] IPTC tag", by Joris Van Damme
2006.08.25 18:50 "RE: [Tiff] IPTC tag", by Chris Cox
2006.08.29 15:47 "Re: [Tiff] IPTC tag", by Joris Van Damme
2006.09.07 05:15 "Re: [Tiff] Some tags with count zero", by Anurag Singh
2006.09.06 06:31 "[Tiff] Some tags with count zero", by Anurag Singh
2006.09.06 13:09 "Re: [Tiff] Some tags with count zero", by Joris Van Damme
2006.09.07 10:10 "Re: [Tiff] Some tags with count zero", by Joris Van Damme

2006.08.25 15:56 "Re: [Tiff] IPTC tag", by Joris Van Damme

Bob,

This IPTC tag discussion seems to be a lot of heat about something which can not be repaired. The horse has already left the barn. Elvis has left the building.

I do agree. I tried to express more or less the same when I mentioned the breathing apparatus. I should have remembered to mention Elvis instead. ;-)

In GraphicsMagick we deal with the long-swapping issue by simply swapping when necessary (when TIFFIsByteSwapped() returns true). The length of the data is always assured to be evenly divisible by four. This approach seems to work.

As far as I can tell from that which has been said already, your approach would not be failproof either. Interestingly, it will fail on likely about the same files that are not supported in Photoshop. You would be able to generate such a file easilly, by writing any long IPTC data, directly with TIFFSetField in LibTiff, on a file with byte order different from machine byte order.

As you say, though, Elvis has...

IPTC data is found in TIFF using several different mechanisms. Photoshop stores IPTC data in its own (8BIM) chunk so the same (or different) IPTC data may appear in a TIFF a couple of times.

See, even though Elvis did leave, there are still people who do things with this data. So I'm left thinking comments like you make here, should go someplace where people find 'm, as in, dedicated IPTC tag page over in the tag dir.

Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html