Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i7R58uTb032027
        for <joris.at.lebbeke@skynet.be>; Fri, 27 Aug 2004 07:08:56 +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 inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i7R58pYJ027749
        for <joris.at.lebbeke@skynet.be>; Fri, 27 Aug 2004 07:08:53 +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 C231A25DD3C; Fri, 27 Aug 2004 01:08:39 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.200])
	by xserve.flids.com (Postfix) with ESMTP id 4729E25DD2C
	for <tiff@remotesensing.org>; Fri, 27 Aug 2004 01:08:38 -0400 (EDT)
Received: by mproxy.gmail.com with SMTP id 73so166223rnk
	for <tiff@remotesensing.org>; Thu, 26 Aug 2004 22:08:32 -0700 (PDT)
Received: by 10.38.102.54 with SMTP id z54mr2603685rnb;
	Thu, 26 Aug 2004 22:08:32 -0700 (PDT)
Received: by 10.38.86.28 with HTTP; Thu, 26 Aug 2004 22:08:32 -0700 (PDT)
Message-ID: <b353037040826220861738465@mail.gmail.com>
Date: Fri, 27 Aug 2004 10:38:32 +0530
From: Sachin Garg <schngrg@gmail.com>
To: tiff@remotesensing.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: [Tiff] Copy custom TIFF tags
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Sachin Garg <schngrg@gmail.com>
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: 130f73ef1e8534fcd3d6c9f00b95064f

When using tiffcp (v3.7.0alpha), I noticed that it does not copies
custom tiff tags.

The directory reading/writting routines support the custom tiff tags
(by maintaining an expanding list of such tags).

I was trying to copy custom tags too (using the code copied below) but
it aint working correctly. I guess I am able to read the values fine,
but something wrong happens while trying to write.

===========

uint32 count;
int  i;	
count = (short) TIFFGetTagListCount(in);

for( i = 0; i < count; i++ )
{

	ttag_t  tag = TIFFGetTagListEntry( in, i );
	{
		short value_count;
		int j;
		void *raw_data;

		if( TIFFGetField( in, tag, &value_count, &raw_data ) != 1 )
			continue;
		TIFFSetField(out, tag, value_count, raw_data);
	}
}


-- 
http://www.geocities.com/schngrg 
http://sachingarg.go.to 
schngrg@yahoo.com schngrg@gmail.com 
sachingarg@msn.com sachin.garg@paxcel.net
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
