1997.05.05 08:00 "Can't write Tiff directory first", by Pesce Roberto

1997.05.05 13:09 "Re: Can't write Tiff directory first", by Rainer Wiesenfarth

I'm quite a newbie as a LIBTiff user, in fact I only used lilbtiff for reading 'till today and all worked fine; now I have to write some group 4 compressed images but when I tried the writing/compressing capabilities, stealing some code from the samples included with the library, I succeeded in writing but the TIFF directory is appended to the compressed data.

The image is correct and the file is OK, but I'd like to have the directory at the beginning of the file...

Why? You should not! Every reader that claims to understand TIFF has to handle a TIFF directory in whatever place. So there is absolutely no reason to insist on a specific location for the directory.

(Assumed you manage to write the directory at offset 8, what advantage would taht have for you? You can not base a reader on the assumption of a directory at offset 8)

Greetings Rainer

-- 
| This mail came from:
| Rainer Wiesenfarth                 Tel: +49 7364 203321
| c/o Carl Zeiss, Div. Phm-A         Fax: +49 7364 202829
| 73446 Oberkochen                e-mail: Wiesenfarth@zeiss.de
| Germany