AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
August 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.08.11 10:29 "Newbie RICHTIFFIPTC query", by <dermot@sciencephoto.com>
2006.08.11 15:00 "Re: Newbie RICHTIFFIPTC query", by Dermot Paikkos
2006.08.11 15:53 "Re: Newbie RICHTIFFIPTC query", by <dermot@sciencephoto.com>
2006.08.11 16:12 "Re: Newbie RICHTIFFIPTC query", by Bob Friesenhahn
2006.08.11 17:37 "Re: Newbie RICHTIFFIPTC query", by Bernie Pallek
2006.08.11 19:49 "Re: Newbie RICHTIFFIPTC query -- code snippet (sample usage of TIFFTAG_RICHTIFFIPTC)", by Bernie Pallek

2006.08.11 16:12 "Re: Newbie RICHTIFFIPTC query", by Bob Friesenhahn

On 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/