2004.12.02 18:07 "[Tiff] Having problems adding IPTC to a TIFF", by Roland Rabien

2004.12.07 22:16 "Re: [Tiff] Having problems adding IPTC to a TIFF", by Chris Cox

Well maybe the first thing to do would be to see what Photoshop IS doing. Since Adobe is in charge of the TIFF specs, if they're writing IPTC as a LONG array, then THAT IS the spec, even if it's conceptually incorrect. If they're writing UNDEFINED of whatever, then libtiff should definitely follow.

Wrong. If Adobe breaks the TIFF spec, that is a different thing from Adobe changing the TIFF spec.

It isn't breaking the spec at all.

It isn't 100% correct - but the size of the datablock is still correct and it is still readable.

IF the contents of the block were defined in the TIFF spec. then they would have to be byte swapped according to the TIFF spec. This is similar to the ICC profile block (and others)- it is handled independently of the TIFF byte order.

You cannot blindly byte swap blocks based on their stated size, you have to swap based on knowledge of their contents.

Chris