Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas018.isp.belgacom.be (localhost [127.0.0.1])
        by inav008.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k4U8rowe018738
        for <joris.at.lebbeke@skynet.be>; Tue, 30 May 2006 10:53:50 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx015.isp.belgacom.be (inmx015.isp.belgacom.be [195.238.4.218])
        by inas018.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k4U8rdXE016204
        for <joris.at.lebbeke@skynet.be>; Tue, 30 May 2006 10:53:43 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx015.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k4U8rUlj027968
        for <joris.at.lebbeke@skynet.be>; Tue, 30 May 2006 10:53:30 +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 k4U8ik3A028850;
	Tue, 30 May 2006 04:45:36 -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 k4U8ihON028847
	for <tiff@lists.maptools.org>; Tue, 30 May 2006 04:44:43 -0400
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id D14EE1FD;
	Tue, 30 May 2006 10:40:39 +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] libtiff writes zero valued tile offsets and byte counts
Date: Tue, 30 May 2006 10:42:34 +0200
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920DABF28B@zynlms01.ZyLAB.WAN>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] libtiff writes zero valued tile offsets and byte counts
Thread-Index: AcaAIxHIAY4ktCCBRYGIIYPTrwJQygDoMHWg
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
	k4U8ihON028847
Cc: Thomas Sharpless <tksharpless@gmail.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.00001727
X-MSP-STORE: Tue, 30 May 2006 10:53:57 +0200
Status:   

Thomas Sharpless wrote:

> My scanning camera app writes tiled tiff images using libtiff under Win32.  The
> images are readable by PhotoShop (6.01) but not by PaintShop Pro 7 or libtiff
> itself.  The problem seems to be that all the tile offsets and bytecounts in the
> file are zero (their number is correct).  Can anyone tell me why?

It's hard to image that such a file would be readable by Photoshop (unless it
applies some heuristics when it encounters a nonconforming TIFF file).

Your code looks good at first sight. Maybe you can make a TIFF that you created
this way available by FTP or HTTP, or at least post the output of tiffdump? Also,
you could try to reduce your code to a short, self-contained program that writes
a TIFF, so we can reproduce your problem.

					Gerben Vos.

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