Status: Read
Received: from [207.176.88.85] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Thu, 8 Jun 2000 21:29:04 -0400
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id UAA05286;
	Thu, 8 Jun 2000 20:39:47 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Thu, 8 Jun 2000 20:25:41 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id UAA02369
	for tiff-outgoing; Thu, 8 Jun 2000 20:25:41 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: (from kg@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id UAA02365
	for tiff@olympiakos.com; Thu, 8 Jun 2000 20:25:32 -0400
Received: from zymail.zylab.nl (zyfire.irt.nl [193.67.146.3])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id LAA00697
	for <tiff@olympiakos.com>; Thu, 8 Jun 2000 11:37:44 -0400
Received: by ZYMAIL with Internet Mail Service (5.5.2448.0)
	id <L007FYJ2>; Thu, 8 Jun 2000 17:47:36 +0200
Message-ID: <28EE49CC78D2D211A42A0060084B64A8317362@ZYMAIL>
From: Gerben Vos <gerben@ZyLAB.NL>
To: tiff@olympiakos.com
Cc: Ariel_Ben-Porath@amat.com
Subject: Re: TIFF tag > 64 KB ? Correction
Date: Thu, 8 Jun 2000 17:47:08 +0200 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-tiff@olympiakos.com

>We would like to save a TIFF tag whose size is greater then 64 KB.

Ariel,

we have just hit on the same problem here. Although we are now
implementing a workaround that reduces the amount of data (so we don't
have to change LibTIFF), it seems to me that this should be fixed
anyway.

If you already know of a fix for this, I'd like to know about it.

>From a first investigation, it seems you could get away with changing
u_short to uint32 throughout TIFFWriteNormalTag() in tif_dirwrite.c
(and maybe also changing field_readcount and field_writecount to
int32 in tif_dir.h), but I'm not so sure about all those calls to
TIFFSetField and TIFFGetField (and through tif_vsetfield and
tif_vgetfield) that take a count parameter, which is now uint16.

Cheers,
					Gerben Vos.

