Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx014.isp.belgacom.be (inmx014.isp.belgacom.be [195.238.2.217])
        by mailst034.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i8FABnlf031306
        for <joris.at.lebbeke@skynet.be>; Wed, 15 Sep 2004 12:11:49 +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 inmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i8FABGKm021185
        for <joris.at.lebbeke@skynet.be>; Wed, 15 Sep 2004 12:11:18 +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 69DAB2E9834; Wed, 15 Sep 2004 06:11:00 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from pollux.zylab.nl (unknown [213.201.159.34])
	by xserve.flids.com (Postfix) with ESMTP id E17BC2E9811
	for <tiff@remotesensing.org>; Wed, 15 Sep 2004 06:10:58 -0400 (EDT)
Received: from zynlms01.ZyLAB.WAN (unknown [192.168.1.10])
	by pollux.zylab.nl (Postfix) with ESMTP id BC39C1D9BF
	for <tiff@remotesensing.org>; Wed, 15 Sep 2004 05:21:47 +0200 (CEST)
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"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [Tiff] Removing reduced resolution pages
Date: Wed, 15 Sep 2004 12:10:37 +0200
Message-ID: <E576857BCF49794A91D55F1964FD86232DC7B4@zynlms01.ZyLAB.WAN>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] Removing reduced resolution pages
Thread-Index: AcSa9zYsFfaXWbN7R8SYhMLeyoDAxQAEtjQg
From: "Gerben Vos" <Gerben@ZyLAB.COM>
To: "Han The Man" <hantheman12@hotmail.com>
Cc: 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: 6902436781ceb0801082afc6fad3f7f3

Han The Man wrote:

> I want to remove any pages in those TIFF files marked as=20
> reduced-resolution.=20
> So in essence, I want to replace the original file with a new=20
> file not having reduced-resolution pages.
>=20
> Can I do that reliably using libtiff?

Absolutely.

You can use tiffcp to copy only some subimages, eg.:

        tiffcp in.tif,0,2 out.tif

To identify the subimages you want, write a shell script or batch file =
that
parses the output of tiffinfo, maybe with a bit of perl or awk.

Alternatively, take the tiffcp source code and tweak it to do what you =
want.
Or write your own code; that isn't too hard if you know that all your =
TIFFs
are tiled or not. tiffcp already knows how to take care of both strips =
and
tiles and conversion between the two formats, which is the main reason I =
find
tiffcp a bit hard to read.

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