Received: from inav033.isp.belgacom.be (localhost.localdomain [127.0.0.1])
	by inav033.isp.belgacom.be (Postfix) with ESMTP id 72178BEE72
	for <joris.at.lebbeke@skynet.be>; Tue, 19 Dec 2006 17:06:39 +0100 (CET)
Received: from inas017.isp.belgacom.be (inas017.isp.belgacom.be [195.238.4.130])
	by inav033.isp.belgacom.be (Postfix) with ESMTP id 661D1BEE67
	for <joris.at.lebbeke@skynet.be>; Tue, 19 Dec 2006 17:06:39 +0100 (CET)
Received: from inmx018.isp.belgacom.be (inmx018.isp.belgacom.be [195.238.4.79])
        by inas017.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id kBJG6RG9002134
        for <joris.at.lebbeke@skynet.be>; Tue, 19 Dec 2006 17:06:34 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx018.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id kBJG6GmW018767
        for <joris.at.lebbeke@skynet.be>; Tue, 19 Dec 2006 17:06:17 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id kBJFucQE005825;
	Tue, 19 Dec 2006 10:57:30 -0500
Received: from rune.pobox.com (rune.pobox.com [208.210.124.79])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id kBJFuboO005822
	for <tiff@lists.maptools.org>; Tue, 19 Dec 2006 10:56:37 -0500
Received: from rune (localhost [127.0.0.1])
	by rune.pobox.com (Postfix) with ESMTP id DB5269DAE3;
	Tue, 19 Dec 2006 10:56:57 -0500 (EST)
Received: from [192.168.2.4] (dpc674728121.direcpc.com [67.47.28.121])
	by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id 53E949CF23;
	Tue, 19 Dec 2006 10:56:50 -0500 (EST)
Message-ID: <45889038.3000107@pobox.com>
Date: Tue, 19 Dec 2006 20:22:00 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 1.5.0.8 (X11/20061116)
MIME-Version: 1.0
To: Anurag Singh <contact.anurag@gmail.com>
Subject: Re: [Tiff] Order of Image IFD and Strip Data
References: <11848b2f0612160214h26f2c8f3xbf7b01b13afe01d2@mail.gmail.com>
	<11848b2f0612190524u54d110cdxe3a1f242b1710cd8@mail.gmail.com>
In-Reply-To: <11848b2f0612190524u54d110cdxe3a1f242b1710cd8@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Tiff <tiff@lists.maptools.org>
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001e7f
X-MSP-STORE: Tue, 19 Dec 2006 17:06:39 +0100
Status:   

Anurag Singh wrote:
> Hello All
>  
> I am making copying  of tiff image, but i got to know that libtiff 
> modified offset of image IFD.
> Actually in the source image image data (Strip Data) is first  and then 
> all the tags.
> But In the final copy, tag is first and  strip data is second.
>  
> I know that there's no problem in order, and ofcourse my tiff image is 
> able to open & working fine. but i want to make exact copy.
>  
> So, I want to know that is there any provision in libtiff that anyone 
> can specified the above order.

Anurag,

If you want an exact copy then skip libtiff, and just copy the file directly.

There are some things you can do with libtiff to try and influence the order
in which things are written, and by default it will write the image data
starting at byte 8, and put the tags and directory after the image data.
(based on a test with tiffcp anyways).

But basically Joris is right, fiddling about with ordering dependencies is
a short road to misery.

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    | President OSGeo, http://osgeo.org

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
