AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.05.02 13:00 "[TIFF] CCITT RLE image is inverted", by <tame@lexmark.com>
2007.05.02 14:47 "Re: [TIFF] CCITT RLE image is inverted", by Bob Friesenhahn
2007.05.02 16:27 "Re: [TIFF] CCITT RLE image is inverted", by Chris Cox

2007.05.02 13:00 "[TIFF] CCITT RLE image is inverted", by <tame@lexmark.com>

Hi all,

I have a CCITT RLE compressed image with photometric interpretation of 
MinIsZero that appears "correct" in Windows Viewer, but appears "inverted" 
in GIMP, Photoshop and IrfanView. 

>From the output from libtiff, it appears that GIMP, et al is honoring the 
photometric interpretation, but Windows Viewer is not?  I wasn't sure if 
that was the case, or maybe libtiff is inverting the data before passing 
back to the caller.

I saw the same topic posted in 2004 that says that some viewers may not 
honor the photometric interpretation, but wasn't sure if that was the case 
here.

Here's the output from tiffinfo and tiffdump

TIFF Directory at offset 0x8 (8)
  Subfile Type: multi-page document (2 = 0x2)
  Image Width: 200 Image Length: 200
  Resolution: 96, 96 pixels/inch
  Bits/Sample: 1
  Compression Scheme: CCITT RLE
  Photometric Interpretation: min-is-black
  FillOrder: msb-to-lsb
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 8
  Planar Configuration: single image plane
  Page Number: 0-1
  Color Map: (present)
  Software: Paint Shop Pro 9.0
  DateTime: 2006:03:10 13:17:15
  Artist:

Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 8 (0x8) next 0 (0)
SubFileType (254) LONG (4) 1<2>
ImageWidth (256) LONG (4) 1<200>
ImageLength (257) LONG (4) 1<200>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<2>
Photometric (262) SHORT (3) 1<1>
FillOrder (266) SHORT (3) 1<1>
StripOffsets (273) LONG (4) 25<521 537 585 759 824 882 1051 1104 1195 1361 
1393 1434 1506 1529 1564 1732 1816 1856 2026 2099 2173 2339 2388 2423 ...>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<8>
StripByteCounts (279) LONG (4) 25<16 48 174 65 58 169 53 91 166 32 41 72 
23 35 168 84 40 170 73 74 166 49 35 71 ...>
XResolution (282) RATIONAL (5) 1<96>
YResolution (283) RATIONAL (5) 1<96>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<1 0>
Software (305) ASCII (2) 19<Paint Shop Pro 9.0\0>
DateTime (306) ASCII (2) 20<2006:03:10 13:17:15\0>
Artist (315) ASCII (2) 1<\0>
Colormap (320) SHORT (3) 6<65280 0 65280 0 65280 0>


Thanks Alot!

Elaine