Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas027.isp.belgacom.be (localhost [127.0.0.1])
        by inav003.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k6KEZFF9011551
        for <joris.at.lebbeke@skynet.be>; Thu, 20 Jul 2006 16:35:15 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx003.isp.belgacom.be (inmx003.isp.belgacom.be [195.238.5.11])
        by inas027.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k6KEZ6qf024431
        for <joris.at.lebbeke@skynet.be>; Thu, 20 Jul 2006 16:35:07 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx003.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k6KEZ2a7003442
        for <joris.at.lebbeke@skynet.be>; Thu, 20 Jul 2006 16:35:02 +0200
        (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 k6KEMbw6006474;
	Thu, 20 Jul 2006 10:22:46 -0400
Received: from scmze001.ssan.egs-seg.gc.ca (scmze001.ssan.egs-seg.gc.ca
	[205.194.19.85])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k6KEMP4b006446
	for <tiff@lists.maptools.org>; Thu, 20 Jul 2006 10:22:25 -0400
Received: from bulwark1.ic.gc.ca ([192.197.178.1])
	by scmze001.ssan.egs-seg.gc.ca with ESMTP; 20 Jul 2006 10:19:23 -0400
Received: from msg-gate2.ic.gc.ca ([142.53.11.42]) by bulwark1.ic.gc.ca
	via smtpd (for scmze001.ssan.egs-seg.gc.ca [205.194.19.85]) with ESMTP;
	Thu, 20 Jul 2006 10:19:22 -0400
Received: from parapet11.ic.gc.ca (parapet11.ic.gc.ca [142.53.11.253])
	by msg-gate2.ic.gc.ca (Switch-3.1.8/Switch-3.1.7) with ESMTP id
	k6KEJLCt002393
	for <tiff@lists.maptools.org>; Thu, 20 Jul 2006 10:19:21 -0400 (EDT)
Received: from msg-con2.icent.ic.gc.ca by parapet11.ic.gc.ca
	via smtpd (for msg-gate2.ic.gc.ca [142.53.11.42]) with ESMTP;
	Thu, 20 Jul 2006 10:19:21 -0400
Received: from msg-con1.icent.ic.gc.ca ([142.53.28.148]) by
	msg-con2.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Thu, 20 Jul 2006 10:19:21 -0400
Received: from msg-mb2.icent.ic.gc.ca ([142.53.28.151]) by
	msg-con1.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Thu, 20 Jul 2006 10:19:21 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: [Tiff] newbiequestion: [?] backup complete ifd > private ifd
Date: Thu, 20 Jul 2006 10:19:21 -0400
Message-ID: <F78E6BBD22A6FC4489EBE2504540790805592523@msg-mb2.icent.ic.gc.ca>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] newbiequestion: [?] backup complete ifd > private ifd
Thread-Index: AcasBGgzsPf007klS6CnVUrnT3xG9AAAPQvgAAB9ZfA=
From: "Pallek, Bernie: #CIPO - OPIC" <Pallek.Bernie@ic.gc.ca>
To: <tiff@lists.maptools.org>
X-OriginalArrivalTime: 20 Jul 2006 14:19:21.0632 (UTC)
	FILETIME=[7EA7EA00:01C6AC07]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k6KEMP4b006446
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.0000189d
X-MSP-STORE: Thu, 20 Jul 2006 16:35:17 +0200
Status:   

(Whoops, forgot to include the list as a target)

-----Original Message-----
From: Pallek, Bernie: #CIPO - OPIC 
Sent: Thursday, July 20, 2006 10:18 AM
To: 'Karin Hoehne'
Subject: RE: [Tiff] newbiequestion: [?] backup complete ifd > private
ifd


Karin wrote:
> Is there a way to copy/backup an entire ifd and create a new, 
> pivate one at the end after the last ifd?
> Well, I guess not, but one can hope ... :)

You can copy the IFD itself, but remember that it contains pointers (offsets) to other data, so just saving the IFD and doing something with it (e.g. replacing another IFD with it) won't be useful.  You can add a new IFD, but the old one will have to be modified, because its last value is a pointer to the next (your new) IFD.

> Is there a way [which i couldn't figure out till now] to 
> print a list of all tags - including private tags? 
> [i mean in this way: is there something or not, indicated by 
> an integer like 0 
> and 1] or [>some< kind of information of a private tag.]

You can use the tiffinfo and tiffdump utilities (in the tools subdirectory) to show most stuff, including private tags (though they will just be displayed as raw bytes, I think).

> According to this: http://www.asmail.be/msg0054967690.html :
> As far as I don't know the datatype of possible private tags, 
> do i have do restrict the task on the 45 baselinetags?

Yes, it's considered best to avoid propagating tags that your program doesn't understand, because if they depend on the structure of the file being a certain way, when you create a new file and copy those tags over, various offsets may be different, and so those tags will appear "broken" to whatever app can normally understand them.  On the other hand, sometimes "broken" info is better than no info.  It really depends on the application, but as a general rule, private tags should only be handled by the applications that understand those tags.

> Is there some elegant, automated implementation in the 
> libtiff to copy all of the baselinetags or do i have to 
> write a readingfunction for every single  tag?

I don't think there is such functionality, but if you should choose to add it, it might be helpful to keep in mind that tags must always appear in numerical order in an IFD (some sort of elegance might be squeezed out of this fact).  :-)

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