Received: from mailgate004.isp.belgacom.be (mailgate004.isp.belgacom.be [195.238.6.89])
	by maildelivery004.isp.belgacom.be (Postfix) with ESMTP id 68D5563C005
	for <joris.at.lebbeke@skynet.be>; Tue, 25 Sep 2007 11:19:41 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 25 Sep 2007 11:19:40 +0200
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 l8P95xSm028914;
	Tue, 25 Sep 2007 05:07:23 -0400
Received: from bay0-omc3-s21.bay0.hotmail.com (bay0-omc3-s21.bay0.hotmail.com
	[65.54.246.221])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l8P95gT0028907
	for <tiff@lists.maptools.org>; Tue, 25 Sep 2007 05:05:43 -0400
Received: from BAY142-W8 ([65.55.153.43]) by bay0-omc3-s21.bay0.hotmail.com
	with Microsoft SMTPSVC(6.0.3790.3959); 
	Tue, 25 Sep 2007 02:05:39 -0700
Message-ID: <BAY142-W84DAE9049C368B9A0C84AADB70@phx.gbl>
X-Originating-IP: [192.150.11.4]
From: Krishna Singh Karki <kskarki@hotmail.com>
To: <tiff@lists.maptools.org>
Date: Tue, 25 Sep 2007 09:05:39 +0000
Importance: Normal
MIME-Version: 1.0
X-OriginalArrivalTime: 25 Sep 2007 09:05:39.0747 (UTC)
	FILETIME=[3E642F30:01C7FF53]
Subject: [Tiff] TIFFClientOpen() fails for fiels with incorrect
 "ExtraSamples" field.
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>
Content-Type: multipart/mixed; boundary="===============0176095863=="
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000027f8
X-MSP-STORE: Tue, 25 Sep 2007 11:19:41 +0200
Status: RO

--===============0176095863==
Content-Type: multipart/alternative;
	boundary="_755bda7f-206d-414d-a1d3-f753c2c88595_"

--_755bda7f-206d-414d-a1d3-f753c2c88595_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi All,

I am using TIFF library version 3.8.2 and I am facing problem opening certa=
in scanned tiff files.

I am using TIFFClientOpen() function to read tiff files. For a test tiff fi=
le, I get a warning message=20

incorrect count for field "ExtraSamples" (0, expecting 1); tag ignored. and=
 then the above call to TIFFClientOpen() returns NULL.

I looked at tiff sources and the warning is thrown from CheckDirCount() fun=
ction in tif_dirread.c() function. Since the above message indicates a warn=
ing on debugging I saw that it will always fail in above case.=20

Is this a known issue?  Is it due to the file being corrupt value for tag?

thanks in advance
-Krishna

_________________________________________________________________
More photos; more messages; more whatever =96 Get MORE with Windows Live=99=
 Hotmail=AE. NOW with 5GB storage.
http://imagine-windowslive.com/hotmail/?locale=3Den-us&ocid=3DTXT_TAGHM_mig=
ration_HM_mini_5G_0907=

--_755bda7f-206d-414d-a1d3-f753c2c88595_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'><div style=3D"text-align: left;">Hi All,<br><br>I=
 am using TIFF library version 3.8.2 and I am facing problem opening certai=
n scanned tiff files.<br><br>I am using TIFFClientOpen() function to read t=
iff files. For a test tiff file, I get a warning message <br><br>incorrect =
count for field "ExtraSamples" (0, expecting 1); tag ignored. and then the =
above call to TIFFClientOpen() returns NULL.<br><br>I looked at tiff source=
s and the warning is thrown from CheckDirCount() function in tif_dirread.c(=
) function. Since the above message indicates a warning on debugging I saw =
that it will always fail in above case. <br><br>Is this a known issue?&nbsp=
; Is it due to the file being corrupt value for tag?<br><br>thanks in advan=
ce<br>-Krishna<br></div><br /><hr />More photos; more messages; more whatev=
er =96 Get MORE with Windows Live=99 Hotmail=AE. NOW with 5GB storage. <a h=
ref=3D'http://imagine-windowslive.com/hotmail/?locale=3Den-us&ocid=3DTXT_TA=
GHM_migration_HM_mini_5G_0907' target=3D'_new'>Get more!</a></body>
</html>=

--_755bda7f-206d-414d-a1d3-f753c2c88595_--

--===============0176095863==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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