Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g393TFWG021942
	for <dron@localhost>; Tue, 9 Apr 2002 07:35:10 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.9.0)
	for dron@localhost (single-drop); Tue, 09 Apr 2002 07:35:10 +0400 (MSD)
Received: from gate7.olympiakos.com ([64.32.199.150]) by shared1-mail.whowhere.com; Mon Apr  8 13:36:22 2002
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id QAA11825;
	Mon, 8 Apr 2002 16:18:43 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 8 Apr 2002 16:18:41 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id QAA11809
	for tiff-outgoing; Mon, 8 Apr 2002 16:18:40 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from gate.apago.com (64.89.71.156.nw.nuvox.net [64.89.71.156])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id QAA11806
	for <tiff@olympiakos.com>; Mon, 8 Apr 2002 16:18:39 -0400
Received: from gate.apago.com 
	by gate.apago.com (8.9.3/gate/01-06-97)
	id UAA12727; Mon, 8 Apr 2002 20:18:00 GMT
Date: Mon, 8 Apr 2002 16:18:00 -0400 (EDT)
From: Dwight Kelly <dkelly@apago.com>
To: tiff@olympiakos.com
Subject: TIFF_BYTE fields
In-Reply-To: <CA2A37218F28D611B53900805FF5E50DA6DC7C@w12tcxu03.tv.bbc.co.uk>
Message-ID: <Pine.LNX.4.21.0204081233490.11285-100000@gate.apago.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 864
Lines: 24

I think I've found a problem in the tag writing code for fields of type
TIFF_BYTE. If a TIFF_BYTE tag has a length of 1-4 bytes, the value gets
written to the offset field of the tag in the directory. According to the
TIFF 6.0 spec, the bytes are 'left-justified'. 

The libtiff routine TIFFWriteByteArray()  seems to assume that the
variable is always 32-bits and will not work correctly for a uint8
variable and a TIFF_BYTE field with length = 1.

I'm working on a fix but wanted to see if anyone else has noticed the
problem.

-- 
Dwight Kelly
Apago, Inc.  
4080 McGinnis Ferry Rd  Suite 601
Alpharetta, GA 30005
voice:(770) 619-1884  fax:(770) 619-1885
email: dkelly@apago.com web: http://www.apago.com



To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

