2006.01.11 07:08 "[Tiff] LIBTIFF can't read tif file while Type of StripOffsets(tag 273) is SHORT.", by Kelvin Zhong

2006.01.11 07:08 "[Tiff] LIBTIFF can't read tif file while Type of StripOffsets(tag 273) is SHORT.", by Kelvin Zhong

Hi,All
   In case i found that libtiff can't read a tif file

This file can be found at: http://www.hebeinu.net.cn/01.tif

After i dig into the problem, It seems it caused by the Type of StripOffsets(tag 273) is SHORT. Here is some information that output from tiffdump (BTW,the version of libtiff i used is v3.7.2)

01.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 8 (0x8) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<851>
ImageLength (257) SHORT (3) 1<1720>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<2>

DocumentName (269) ASCII (2) 54< 123456789.   0ibsv2.    ...>

Make (271) ASCII (2) 10<KODAK \0\0\0>
Model (272) ASCII (2) 15<IL ScanImage99\0>
StripOffsets (273) SHORT (3) 1<565>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<871>
StripByteCounts (279) LONG (4) 1<17428>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
ResolutionUnit (296) SHORT (3) 1<2>

Software (305) ASCII (2) 15<ScanWare V1.00\0>

DateTime (306) ASCII (2) 20<1995:05:23 13:35:41\0>
Artist (315) ASCII (2) 20<Paperless 1995\0\0\0\0\0\0>
33334 (0x8236) BYTE (1) 137<0x31 0x2e 0x30 0x31 0x46 0x3a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...>