AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.05.10 18:00 "[Tiff] Tiff throws error on tiffinfo but not with tiffdump", by Jeremy Nix
2006.05.10 18:16 "Re: [Tiff] Tiff throws error on tiffinfo but not with tiffdump", by Bob Friesenhahn
2006.05.10 19:13 "Re: [Tiff] Tiff throws error on tiffinfo but not with tiffdump", by Gerben Vos
2006.05.23 11:03 "[Tiff] Question to TIFF mailing list", by Alexey Aushev
2006.05.23 12:13 "[Tiff] Question to TIFF mailing list", by Gerben Vos

2006.05.10 18:00 "[Tiff] Tiff throws error on tiffinfo but not with tiffdump", by Jeremy Nix

I have a tiff image that has been giving me problems with JAI (Java Advanced Imaging). I decided to test it out using these tools and I've received mixed results with both the tiffinfo.exe and tiffdump.exe. I'm wondering why tiffdump.exe did not have any problems with the image but tiffinfo.exe did. Below is the results from both commands:

C:\>tiffdump image.tif

..\test\bad_1.tif:

Magic: 0x4949 <little-endian> Version: 0x2a

Directory 0: offset 8 (0x8) next 1048102 (0xffe26)

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

ImageWidth (256) LONG (4) 1<2544>

ImageLength (257) LONG (4) 1<3295>

BitsPerSample (258) SHORT (3) 1<1>

Compression (259) SHORT (3) 1<1>

Photometric (262) SHORT (3) 1<0>

FillOrder (266) SHORT (3) 1<2>

StripOffsets (273) LONG (4) 1<278>

Orientation (274) SHORT (3) 1<1>

SamplesPerPixel (277) SHORT (3) 1<1>

RowsPerStrip (278) LONG (4) 1<3295>

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

XResolution (282) RATIONAL (5) 1<300>

YResolution (283) RATIONAL (5) 1<300>

Group3Options (292) LONG (4) 1<0>

ResolutionUnit (296) SHORT (3) 1<2>

PageNumber (297) SHORT (3) 2<0 0>

Software (305) ASCII (2) 32<AR Series(AR-M355N) ...>

Directory 1: offset 1048102 (0xffe26) next 0 (0)

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

ImageWidth (256) LONG (4) 1<2544>

ImageLength (257) LONG (4) 1<3295>

BitsPerSample (258) SHORT (3) 1<1>

Compression (259) SHORT (3) 1<1>

Photometric (262) SHORT (3) 1<0>

FillOrder (266) SHORT (3) 1<2>

StripOffsets (273) LONG (4) 1<1048372>

Orientation (274) SHORT (3) 1<1>

SamplesPerPixel (277) SHORT (3) 1<1>

RowsPerStrip (278) LONG (4) 1<3295>

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

XResolution (282) RATIONAL (5) 1<300>

YResolution (283) RATIONAL (5) 1<300>

Group3Options (292) LONG (4) 1<0>

ResolutionUnit (296) SHORT (3) 1<2>

PageNumber (297) SHORT (3) 2<0 1>

Software (305) ASCII (2) 32<AR Series(AR-M355N) ...>

C:\>tiffinfo image.tif

TIFFReadDirectory: Warning, image.tif: unknown field with tag 292 (0x124

) encountered.

TIFF Directory at offset 0x8 (8)

  Subfile Type: multi-page document (2 = 0x2)

  Image Width: 2544 Image Length: 3295

  Resolution: 300, 300 pixels/inch

  Bits/Sample: 1

  Compression Scheme: None

  Photometric Interpretation: min-is-white

  FillOrder: lsb-to-msb

  Orientation: row 0 top, col 0 lhs

  Samples/Pixel: 1

  Rows/Strip: 3295

  Planar Configuration: single image plane

  Page Number: 0-0

  Tag 292: 0

  Software: AR Series(AR-M355N)

TIFFReadDirectory: Warning, image.tif: unknown field with tag 292 (0x124

) encountered.

TIFF Directory at offset 0xffe26 (1048102)

  Subfile Type: multi-page document (2 = 0x2)

  Image Width: 2544 Image Length: 3295

  Resolution: 300, 300 pixels/inch

  Bits/Sample: 1

  Compression Scheme: None

  Photometric Interpretation: min-is-white

  FillOrder: lsb-to-msb

  Orientation: row 0 top, col 0 lhs

  Samples/Pixel: 1

  Rows/Strip: 3295

  Planar Configuration: single image plane

  Page Number: 1-0

  Tag 292: 0

  Software: AR Series(AR-M355N)

Any ideas on why these commands worked differently? Is there something inherently wrong with the tiff image?

_________________________

Jeremy Nix

Senior Application Developer

Southwest Financial Services, Ltd.

(513) 621-6699 x1158