AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.04.05 09:19 "Saturation problem with REC601 YCbCr TIFF files", by Peter Vince
2002.04.06 15:43 "Re: Saturation problem with REC601 YCbCr TIFF files", by Andreas R. Kleinert
2002.04.08 15:48 "Re: writing tiff incrementally", by Daniel McCoy
2002.04.08 15:45 "writing tiff incrementally", by
2002.04.08 19:50 "Re: writing tiff incrementally", by Daniel McCoy
2002.04.08 16:02 "Re: writing tiff incrementally", by Sam Leffler
2002.04.08 16:11 "Re: writing tiff incrementally", by Daniel McCoy
2002.04.08 20:18 "TIFF_BYTE fields", by Dwight Kelly

2002.04.08 20:18 "TIFF_BYTE fields", by Dwight Kelly

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