AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 1999

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

1999.10.21 21:41 "Bad TIFF or library problem?", by Kevin D Quitt
1999.10.22 06:18 "Re: Bad TIFF or library problem?", by Peter Nielsen
1999.10.22 07:06 "Re: Bad TIFF or library problem?", by Klaus Bartz
1999.10.22 10:47 "Re: Bad TIFF or library problem?", by Frank D Cringle

1999.10.22 07:06 "Re: Bad TIFF or library problem?", by Klaus Bartz

Bad TIFF file

The file size is 25495 bytes.
The date begins at offset 198 (StripOffsets) and shoud have a size 
of 25487 ( StripByteCounts ). But 
25495 - 198 = 25297
That's the meaning of the error message; the scanline is -1 because
no line is decoded at the throw time.
It seems so, that the creator of this file has computed
data size := file size - begin of IFD
This is realy wrong.
Other decoders as libtiff decodes until height is reached, or EOFB 
is found or file is at end, or the given StripByteCount is reached, or ...
libtiff assumes, that a file is corrupted if it is shorter 
than announced.

Live will be so easy if all encoders creates files which are
TIFF Rev. 6.0 conform ...

Klaus


Kevin D. Quitt wrote:
> 
> Sorry if this is a duplication - I don't see my first letter, 24 hours later.
> 
> 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.
> 
> >From tiffinfo:
> 
> TIFF Directory at offset 0x8
>   Subfile Type: (0 = 0x0)
>   Image Width: 5100 Image Length: 6600
>   Resolution: 600, 600 pixels/inch
>   Bits/Sample: 1
>   Compression Scheme: CCITT Group 4
>   Photometric Interpretation: min-is-white
>   Thresholding: bilevel art scan
>   Samples/Pixel: 1
>   Rows/Strip: 6600
>   Planar Configuration: single image plane
> 
> >From tiffdump:
> 
> Magic: 0x4949 <little-endian> Version: 0x2a
> Directory 0: offset 8 (0x8) next 0 (0)
> SubFileType (254) LONG (4) 1<0>
> ImageWidth (256) LONG (4) 1<5100>
> ImageLength (257) LONG (4) 1<6600>
> BitsPerSample (258) SHORT (3) 1<1>
> Compression (259) SHORT (3) 1<4>
> Photometric (262) SHORT (3) 1<0>
> Threshholding (263) SHORT (3) 1<1>
> StripOffsets (273) LONG (4) 1<198>
> SamplesPerPixel (277) SHORT (3) 1<1>
> RowsPerStrip (278) LONG (4) 1<6600>
> StripByteCounts (279) LONG (4) 1<25487>
> XResolution (282) RATIONAL (5) 1<600>
> YResolution (283) RATIONAL (5) 1<600>
> ResolutionUnit (296) SHORT (3) 1<2>

-- 
-------------------------------------------------------------------
Dr. Klaus Bartz                                     bartzkau@ina.de
COI GmbH / Abt. KOS3    Industriestr. 1-3    D-91072 Herzogenaurach
Tel: +49 (9132) 82-3433                        Fax: +49-9132-824959