Message-ID: vt904vk6y8.fsf@cliwe.ping.de
To: "Kevin D. Quitt" <Kevin@Quitt.net>
Subject: Re: Bad TIFF or library problem?
From: fdc@cliwe.ping.de (Frank D. Cringle)
Date: 22 Oct 1999 12:47:43 +0200
Cc: TIFF <tiff@olympiakos.com>
In-Reply-To: "Kevin D. Quitt"'s message of "Thu, 21 Oct 99 14:41:23 PDT"
References: <Chameleon.940542141.Kevin@quitt>
Sender: owner-tiff@olympiakos.com


"Kevin D. Quitt" <Kevin@Quitt.net> writes:
> Sorry if this is a duplication - I don't see my first letter, 24 hours later.

No dupes received here (yet).

> ftp://ftp.quitt.net/tiff/print.tif
> 
> ACDSee shows it as blank, as does Graphic Workshop.  PaintShop Pro 5 shows the intended image.
> 
> >From libTIFF:
> 
> TIFFFillStrip: print.tif: Read error at scanline 4294967295; got 25297 bytes, expected 25487.

scanline -1?  Hmmm.

> SubFileType (254) LONG (4) 1<0>

Minor error.  Although this is the only image in the file, it claims
to be "a reduced-resolution version of another image in this TIFF file".

> StripByteCounts (279) LONG (4) 1<25487>

The strip is in fact only 25297 long.  It's at the end of the file and
there are only that many bytes left.  25487-25297 = 190, which happens
to be the stripoffset less the 8-byte header.  The image is displayed
fine by viewfax after fixing the byte count with a hex editor.  The
original file is misshandled by viewfax - it detects the error and
exits, but doesn't produce any error message.

-- 
Frank Cringle,      fdc@cliwe.ping.de
voice: (+49 2304) 467101; fax: 943357

