2006.02.07 13:11 "Re: [Tiff] Re: Mega newbie question", by Dermot Paikkos
On 7 Feb 2006 at 12:48, Joris wrote:
/* value of Photoshop tag is count bytes long, and its value is loaded into the memory pointed to by data */
TIFFReadDirectory: Warning, test.tif: wrong data type 1 for "XMLPacket"; tag ignored.
TIFFReadDirectory: Warning, test.tif: unknown field with tag 34665 (0x8769) encountered.
Ignore above warnings.
BTW, I just noticed, the situation with the uint16 count is corrected for the Photoshop tag. Declare count as uint32 instead.
I still think the general case should be uint32, instead of uint16, though, but this should not bother you.
Now I'm cooking...
uint32 give me:
=========
...snip
if (TIFFGetField(tif, TIFFTAG_PHOTOSHOP, &count, &data) == 0) {
printf("No PhotoShop Tag found\n");
exit(8);
}
printf("Size of PhotoShop Tag is %d bytes. Type is %d\n", count,
data);
TIFFClose(tif);
return 0;
==========
>Size of PhotoShop Tag is 6134 bytes. Type is 136490136
Which is the same size as reported by the wonderfull AsTiffTagviewer.
Thanx a lot.
Dp.