Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id 188B1400164
	for <info@awaresystems.be>; Fri, 10 Sep 2010 22:50:03 +0200 (CEST)
Received: by mx-k.b-one.net (Postfix, from userid 106)
	id 0BFA43224938; Fri, 10 Sep 2010 22:49:44 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-k.b-one.net (Postfix) with ESMTP id A4B85489654 for
 <info@awaresystems.be>; Fri, 10 Sep 2010 22:49:43 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 770C01D184BD5; Fri, 10 Sep 2010
 15:49:11 -0500 (EST)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com
 [209.85.215.44]) by lists.maptools.org (Postfix) with ESMTP id 7F3FE1D11BD7F
 for <tiff@lists.maptools.org>; Fri, 10 Sep 2010 15:48:47 -0500 (EST)
Received: by ewy26 with SMTP id 26so1351560ewy.3 for
 <tiff@lists.maptools.org>; Fri, 10 Sep 2010 13:48:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.213.113.147 with SMTP id a19mr99878ebq.24.1284151726983; Fri,
 10 Sep 2010 13:48:46 -0700 (PDT)
Received: by 10.14.127.207 with HTTP; Fri, 10 Sep 2010 13:48:46 -0700 (PDT)
In-Reply-To:
 <OF482D442C.D9D72AD6-ON85257799.00717F0F-8525779A.00714D5F@knotes.kodak.com>
References:
 <OF482D442C.D9D72AD6-ON85257799.00717F0F-8525779A.00714D5F@knotes.kodak.com>
Date: Fri, 10 Sep 2010 16:48:46 -0400
Message-ID: <AANLkTim7pi+GcVDmLv5=RaM7iySJY4HVDADTi0gwh33a@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: christopher.l.watkins@kodak.com
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] Problem with a particular image
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Fri, Sep 10, 2010 at 4:37 PM,  <christopher.l.watkins@kodak.com> wrote:
> I'm using LibTIFF 3.9.4, and I have an image that is failing.
>
> I'm trying to do a TIFFReadScanline, and the very first call fails with
> 'LZWDecode: Not enough data at scanline 0 (short 3096 bytes)'.
>
> I traced a little further, and found that the very first token it tries to
> decode returns an EOI (end of image?). The file clearly has a bunch of data
> after this point. I would happily assume a corrupt image, except I can open
> the image without problem in Photoshop or MS-Paint. The image renders as
> completely blank (all white).

Given the photometric of "(white is zero)", perhaps they simply ignore
the codec error and assume all the data is zeroes. For all we know,
they could be showing you uninitialized memory. Is "all white" what
your image is supposed to be (if you know)? How large is the file? An
all white image should be fairly small with LZW compression.

> Below are the tags that I hand-decoded from the image.

tiffdump can usually do this a lot more easily by the way.

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