Return-Path: <tiff-bounces@lists.maptools.org>
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j6LFdmwI023257
        for <joris.at.lebbeke@skynet.be>; Thu, 21 Jul 2005 17:39:48 +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 j6LFd4C2030935;
	Thu, 21 Jul 2005 11:39:39 -0400
Received: from exchange.microbrightfield.com (mail.neuroinformatica.com
	[216.204.84.51])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j6LFd1kH030932
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 11:39:02 -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="us-ascii"
Date: Thu, 21 Jul 2005 11:33:55 -0400
Message-ID: <5EA4B2EDD4BA8B4C84BE11298F81ADC4632C80@exchange.microbrightfield.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Help, I need to do some binary surgery on my tiff.
Thread-Index: AcWHJEgCnnH5tKPERGm6wYd60T8agwAkhS2ZAZTI1hA=
From: "James Carroll" <jim@microbrightfield.com>
To: <tiff@lists.maptools.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	j6LFd1kH030932
Subject: [Tiff] FW: Help, I need to do some binary surgery on my tiff.
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/pipermail/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.0000089d
X-MSP-STORE: Thu, 21 Jul 2005 17:39:57 +0200
Status:   


Hi,  I have my own version of tiffcp that I used to combine some
individual
tiffs into a multi-tiff.  The problem is that the result was over 4GB.
Now
I can't use libtiff (I've tried a few ways.) to open the result.  I just
need to extract the first directory of the tiff out so that it's its own
tiff file.

Does anyone have any suggestions?  I think what I need to do is create a
program that opens the file in binary mode, and starts walking from tag
to tag,  writing everything out until I get to the second directory,
then stopping.

Does this sound possible?  Does anyone know of an example that does
anything
similar?  Is there any quick way of commenting out parts of libtiff so
that
it doesn't fail when I open the tiff?

Thanks,
-Jim



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