2013.03.10 16:39 "[Tiff] ongoing Windows incompatibility,", by lazer100

2013.03.10 16:39 "[Tiff] ongoing Windows incompatibility,", by lazer100

with a native port of tiff-4.0.3

(the other email was about a cross-port of the same, which I am still working on)

there is a problem with the Windows world, where some tiff photos lead to an error message. the photo in question was forwarded to me, and I cannot upload it as its confidential,

but the error message is:

TIFFFetchNormalTag: Warning, Incompatible type for "RichTIFFIPTC"; tag ignored.

the problem with tiff-3.?.? was there but with a different error message, which is thoroughly explained at this URL:

http://old.nabble.com/libtiff-and-IPTC-tag-td28862965.html

following the information there, I guessed what to do with the tiff-4.0.3 source,

and the error message no longer occurs.

I wonder if you can verify the change I made, and if its correct incorporate this into future versions, or create your own workaround,

the file in question is

tiff-4.0.3/libtiff/tif_dirinfo.c

and the change is to

replace:

{ TIFFTAG_RICHTIFFIPTC, -3, -3, TIFF_LONG, 0, TIFF_SETGET_C32_UINT32, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "RichTIFFIPTC", NULL },

by the following:

{ TIFFTAG_RICHTIFFIPTC, -3, -3, TIFF_UNDEFINED, 0, TIFF_SETGET_UNDEFINED, TIFF_SETGET_UNDEFINED, FIELD_CUSTOM, 0, 1, "RichTIFFIPTC", NULL },

a huge amount of people complain about the original incompatibility on the internet,

with a lot of different non Windows software, all of which probably uses libtiff.

according to the above URL, libtiff is probably correct on this, but the incorrect

usage has become established.

with the earlier libtiff, the datastructure is different, a comparable but different

change would be needed.

the photo that was forwarded to me was by a Nikon camera.