| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.08.11 16:12 "Re: Newbie RICHTIFFIPTC query", by Bob FriesenhahnOn Fri, 11 Aug 2006, Beginner wrote:
> There is something wrong with my assignment I think
>
>
> I currently have this:
>
> uint32 count;
> char *data;
> ...
> snip
> if (TIFFGetField(tif, TIFFTAG_RICHTIFFIPTC, &count, &data) == 0) {
> ...
>
> printf("Size of IPTC Tag is %d bytes.\n", &count);
>
> Which yelds this:
>> Size of IPTC Tag is -18344092 bytes.
You should be using %u rather than %d to print an unsigned value.
Regardless, some recent libtiff releases have had severe problems in
this area. Some releases have treated the 'count' argument as a
16-bit type while others have treated it as 32 bit. The most recent
release also has a nasty bug in its tag code which shows up on
big-endian CPUs.
As far as I am aware, the current libtiff CVS code retrieves these
tags correctly.
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
|
|||||||