Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-i.b-one.net (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id A0F80400220
	for <info@awaresystems.be>; Tue,  6 Jan 2009 11:40:26 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-i.b-one.net (Postfix) with ESMTP id 134728871
	for <info@awaresystems.be>; Tue,  6 Jan 2009 11:40:24 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 875C61CF33B49;
	Tue,  6 Jan 2009 05:40:04 -0500 (EST)
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by lists.maptools.org (Postfix) with ESMTP id EBD881D260A12
	for <tiff@lists.maptools.org>; Tue,  6 Jan 2009 05:40:02 -0500 (EST)
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id 0F8ED70C;
	Tue,  6 Jan 2009 11:40:02 +0100 (CET)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Tue, 6 Jan 2009 11:35:50 +0100
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D0604B236@zynlms01.ZyLAB.WAN>
In-Reply-To: <49631B00.5070304@softjin.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] How to delete a TIFF image from a Mulit-TIFF file
	efficiently
Thread-Index: Aclv2yO82S1bLKV4QaG8BHNg8dNOcQADkZig
References: <49631B00.5070304@softjin.com>
From: "Gerben Vos" <Gerben@ZyLAB.COM>
To: <tiff@lists.maptools.org>
Subject: Re: [Tiff] How to delete a TIFF image from a Mulit-TIFF file
	efficiently
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Mark Pereira wrote:

> I would like to know an efficient way of deleting a TIFF image from a
> Multi-TIFF file?

> Currently I am doing a tiffsplit followed by a merge (tiffcp). This
> works fine but its extremely in-efficient

You can use the image addressing feature of tiffcp. For example, if
in.tif contains three images,

  tiffcp in.tif,0 in.tif,2 out.tif

will copy the first and third image of in.tif to out.tif.

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