Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx019.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j52FC3LK009158
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Jun 2005 17:12:14 +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 648DC25D103B; Thu,  2 Jun 2005 11:11:50 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200])
	by xserve.flids.com (Postfix) with ESMTP id EF5F925D1028
	for <tiff@remotesensing.org>; Thu,  2 Jun 2005 11:11:47 -0400 (EDT)
Received: by wproxy.gmail.com with SMTP id 68so377593wri
	for <tiff@remotesensing.org>; Thu, 02 Jun 2005 08:11:47 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=TjTlOn314mCbbcET3+M2n3NyRTxIYAdLHObb+vSNGm+vfA9Q9ZbA6mLCjzdhddziS4faQj/zwqg7GnxrEBDwyBGxCPHiy1bb0ze+gGo81yWzhuyrGUP6Iz3We1sjmWDO3p5ijPD+NkQb2XlQ3QGbehjaLNRKwvE3p51Ukg+hC00=
Received: by 10.54.50.12 with SMTP id x12mr506772wrx;
	Thu, 02 Jun 2005 08:11:13 -0700 (PDT)
Received: by 10.54.100.7 with HTTP; Thu, 2 Jun 2005 08:11:13 -0700 (PDT)
Message-ID: <92d3a495050602081121bcb0c0@mail.gmail.com>
Date: Thu, 2 Jun 2005 17:11:13 +0200
From: Antoine <melser.anton@gmail.com>
To: Gordon Hu <gordonwho@gmail.com>
Subject: Re: [Tiff] Re: how to detect corrupt tif file
In-Reply-To: <4e510056050602062113b2499c@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <4e510056050602062113b2499c@mail.gmail.com>
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Antoine <melser.anton@gmail.com>
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by inmx019.isp.belgacom.be id j52FC3LK009158
X-UIDL: 000000000023ceae.00000318
X-MSP-STORE: Thu, 02 Jun 2005 17:12:34 +0200
Status:   

On 6/2/05, Gordon Hu <gordonwho@gmail.com> wrote:
> All,
> Thanks for the suggestions.
> Let me set up the situation for you.
> We have found some tif files that have garbled lines thus unreadable
> and considered as garbage by our imaging system.
> I have done tiffinfo and tiffdump on those files and realized that the
> image width and image length values do not match. So I guess that is
> one way to find out whether they are corrupt or not. I am exploring
> ways to use tiffinfo and tiffdump in our .Net project to detect the
> said corrupt files. I have download gnu/windows tiff from
> (http://gnuwin32.sourceforge.net/packages/tiff.htm) unto my desktop
> and have tried to call the c dll (libtiff3.dll) from vb .net. Since I
> am a .Net newbie I have limited knowledge about how to implement it.
> So if anyone who is .Net savvy and can help me set it up I'd much
> appreciate it.

If it is anything like VB6 (ie, needs __stdcall functions) then you
will have as much joy as I am having. libtiff was conceived with VB6
conspicously *not* in mind, and that makes it very difficult to use. I
am going to try and convert the calls to stdcalls but can't get 3.7.2
to compile. Others have been having this problem also, both with nmake
and VC6.
Cheers
Antoine
-- 
G System, The Evolving GUniverse - http://www.g-system.at
_______________________________________________
Tiff mailing list: Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/

