Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas028.isp.belgacom.be (localhost [127.0.0.1])
        by inav007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k8RDdf4c013834
        for <joris.at.lebbeke@skynet.be>; Wed, 27 Sep 2006 15:39:42 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.5.50])
        by inas028.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k8RDdW5Z005556
        for <joris.at.lebbeke@skynet.be>; Wed, 27 Sep 2006 15:39:38 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx011.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k8RDdClS032123
        for <joris.at.lebbeke@skynet.be>; Wed, 27 Sep 2006 15:39:16 +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 k8RDQsMg008519;
	Wed, 27 Sep 2006 09:27:19 -0400
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k8RDQpwQ008516
	for <tiff@lists.maptools.org>; Wed, 27 Sep 2006 09:26:51 -0400
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id E810523E;
	Wed, 27 Sep 2006 14:57:33 +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"
Subject: Re: [Tiff] help
Date: Wed, 27 Sep 2006 15:26:35 +0200
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D020CA5F4@zynlms01.ZyLAB.WAN>
In-Reply-To: <OF8D583110.1AAC22CC-ONC12571F6.00326748-C12571F6.00378FCB@betasystems.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] help
Thread-Index: AcbiIQ+tXJIfKkAlSYepst1wLRWkTQAFXmMg
From: "Gerben Vos" <Gerben@zylab.com>
To: <tiff@lists.maptools.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k8RDQpwQ008516
Cc: Robert Scheck <robert.scheck@betasystems.com>
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.00001b1b
X-MSP-STORE: Wed, 27 Sep 2006 15:39:44 +0200
Status:   

Robert Scheck wrote:

> I try to make a simple copy of 'in.tif'. It's a Jpg-In-Tiff File.

New style, luckily. Mentioning as soon as possible that you aren't using
old-style JPEG-in-TIFF helps keep our blood pressure down. :-)

> In the output file there are new tags: 
>   JPEGTables (347) UNDEFINED (7) 2000<00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> 

This TIFF is hopelessly corrupt. You should complain to whoever wrote
it.

The code you wrote would indeed help in making this TIFF correct, for
this specific TIFF only. If you ever want to try this code with other
TIFFs, be careful with fixed-size buffers and be prepared for multi-
strip images. But I hope you know that already.

					Gerben Vos.

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