Received: from phillip.thumbsplus.com by phillip.thumbsplus.com (NTMail 3.02.11) with ESMTP id pcrews for <pcrews@cerious.com>; Mon, 5 May 1997 14:27:59 -0400
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id LAA22915; Mon, 5 May 1997 11:10:10 -0700
	env-from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id GAA29393 for tiff-list; Mon, 5 May 1997 06:49:15 -0700
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id GAA29383 for <tiff-relay@relay.engr.sgi.com>; Mon, 5 May 1997 06:49:12 -0700
Received: from mail.Germany.EU.net (mail.germany.eu.net [192.76.144.65]) by sgi.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id GAA08714
	for <tiff@sgi.com>; Mon, 5 May 1997 06:49:09 -0700
	env-from (wiesenfarth@zeiss.de)
Received: by mail.Germany.EU.net with SMTP (5.59+:34/2.6.2.c)
	id PAA00895; Mon, 5 May 1997 15:42:17 +0200
Received: from aragorn.v-ppb.zeiss.de by oslo.zeiss.de; Mon, 5 May 97 15:09:03 +0200
Received: from aragorn 
	by aragorn.v-ppb.zeiss.de with SMTP (950413.SGI.8.6.12/+CZGEN-1.0+1)
	via CZnet for oslo
	id PAA01481; Mon, 5 May 1997 15:09:14 +0200
Message-ID: <336DDBFA.41C6@zeiss.de>
Date: Mon, 05 May 1997 15:09:14 +0200
From: Rainer Wiesenfarth <wiesenfarth@zeiss.de>
Organization: Carl Zeiss, Abt. Phm-A
X-Mailer: Mozilla 3.01SGoldC-SGI (X11; I; IRIX 6.3 IP32)
MIME-Version: 1.0
To: Pesce Roberto <roberto.pesce@elsag.it>
CC: "'LibTIFF users Mailing List'" <tiff@sgi.com>
Subject: Re: Can't write Tiff directory first
References: <199705050758.JAA13723@mailhub.elsag.it>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@fddi-sgi.engr.sgi.com
Precedence: bulk

Pesce Roberto wrote:
> 
> hello,
> 
> 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

> ______________________________________________________
> 
> Roberto Pesce
> Divisione MAP
> * +39-10-6582250
> fax +39-10-6582498
> * Roberto.Pesce@elsag.it
> 
> Elsag Bailey - un'Azienda FINMECCANICA
> Via Puccini, 2
> 16154 Genova - ITALY

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