Message-ID: 571B91EF5DD1D211A04900A0C9EAD2C872B3D9@pc07207.ina.de
To: "'tiff@olympiakos.com'" <tiff@olympiakos.com>
Subject: AW: Problem with CCITT Group 4 file
From: "Bartz, Klaus" <klaus.bartz@coi.de>
Date: Fri, 1 Dec 2000 11:07:55 +0100
Sender: owner-tiff@olympiakos.com


I've got the file from Stefan.
It's not a libtiff bug, it's a buggy file.
In it there is simple a wrong 8 byte to short StripByteCount
( may be at computing the programm has forgotten the 8 bytes of
the file header ). The "strip loader" of libtiff fails in line -1
(before decoding the first line ), if it cannot load the referenced size. 

The question is, should libtiff be able to handle such a buggy file, 
or not ? The old question. What of the nice ideas of programmers 
should be tolerated, what not.

Klaus

-----Ursprüngliche Nachricht-----
Von: peters [mailto:peters@serendipity-software.com.au]
Gesendet am: Donnerstag, 30. November 2000 22:23
An: Frank D. Cringle
Cc: Stefan Schulz; tiff@olympiakos.com
Betreff: Re: Problem with CCITT Group 4 file

"Frank D. Cringle" wrote:
> That's scanline -1 in a 32-bit int.
> 
> > Unfortunately i have no influence in generating these images, so i have
> > to take what i get. Is there a way to read/view these files with
> > libtiff? As viewers i tried gview, ImageMagick, xtiff and gimp which all
> > depend on libtiff and all failed to open these files.
> 
> You might try viewfax too. It does not rely on libtiff, although it
> uses essentially the same decoder.
> 
>   ftp://ftp.ping.de/pub/unix/viewfax-2.5.tar.gz
> 
> It has a -v flag that may give some information about the input file.
> 
> --
> Frank Cringle,      fdc@cliwe.ping.de
> voice: (+49 7745) 928759; fax: 928761

Are you guys using the latest patches for 3.5.5?
A while a got I posted a patch that fixed the last remaining short that was
left
over
after the conversion to longs. If you seach the recent archives you will
find a
patch
for the CCITG4 decompressor. And since your file is wider than 65535 pixels
this
would
definitely apply. 


-- 
Peter Skarpetis
Serendipity Software Pty Ltd
67 Fitzroy Street
Surry Hills NSW 2010
Sydney Australia

Phone: +612 93321788     
Fax:   +612 93321766
email: peters@serendipity-software.com.au
WWW:   http://www.riponce.com

