Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i82Ds2wI027107
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Sep 2004 15:54:02 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i82DqZYw005331
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Sep 2004 15:52:37 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 4DFDC29372C; Thu,  2 Sep 2004 09:52:22 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205])
	by xserve.flids.com (Postfix) with ESMTP id 407F5293709
	for <tiff@remotesensing.org>; Thu,  2 Sep 2004 09:52:20 -0400 (EDT)
Received: from pobox.com (H156.C195.tor.velocet.net [216.138.195.156])
	by sabre.velocet.net (Postfix) with ESMTP
	id 6E887139D94; Thu,  2 Sep 2004 09:52:05 -0400 (EDT)
Message-ID: <41372589.4040606@pobox.com>
Date: Thu, 02 Sep 2004 09:52:09 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: poom <poom@kosugi-msoft.jp>
Subject: Re: [Tiff] order of writed data in TIFF file
References: <20040902172230.6134.POOM@kosugi-msoft.jp>
In-Reply-To: <20040902172230.6134.POOM@kosugi-msoft.jp>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: TIFFLIST <tiff@remotesensing.org>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: ab61b1b9d033ab49ac53eb00de9e1f7a

poom wrote:
> Hi,
>   I used libtiff to create TIFF file.First,I used TIFFSetField to set a
> value of tag and then write image data to file with command
> "TIFFWriteScanline" .At last close file with "TIFFClose".
> 
>    When I check my TIFF file ,I found that IFD part is wrote under image
> data ,but when I look at TIFF file from photoshop,IFD is come after IFH.
>   
>   I suspect why my TIFF file has been come like this.
> If anyone know about this result,suggest me please.

Poom,

I don't know what an IFH is, but I suspect you are wondering whether the
directory (IFD) information should be written before or after the image
data.  Is that right?  The answer is that the TIFF format has no requirement
on this.  In normal operation with libtiff the directory is written on
TIFFClose() and would be written after the image data.  Some other applications
write the directory before the imagery.  Either is fine.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
