AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.01.04 14:30 "[Tiff] tiffcp photometric issue", by Larry Sanders
2006.01.04 15:07 "Re: [Tiff] tiffcp photometric issue", by Rocky Pulley
2006.01.04 16:51 "Re: [Tiff] tiffcp photometric issue", by Larry Sanders
2006.01.04 18:34 "Re: [Tiff] tiffcp photometric issue", by Frank Warmerdam
2006.01.05 16:18 "[Tiff] Open tiff in memory", by Rocky Pulley
2006.01.05 17:17 "Re: [Tiff] Open tiff in memory", by Bob Friesenhahn
2006.01.05 17:52 "Re: [Tiff] Open tiff in memory", by Edward Lam
2006.01.05 17:18 "Re: [Tiff] Open tiff in memory", by Jeff Breidenbach
2006.01.05 17:38 "Re: [Tiff] Open tiff in memory", by Frank Warmerdam
2006.01.11 18:59 "[Tiff] A Free TIFF to PDF converter and library", by Rocky Pulley

2006.01.04 14:30 "[Tiff] tiffcp photometric issue", by Larry Sanders

Hello all,

I'm using tiffcp to convert from lzw to g4. My original tiff is a multipage, black text on white background (MINISBLACK?). The created tiff using 'tiffcp -c g4 orig.tif new.tif' is white text on black background when viewed using 'Windows Picture and Fax Viewer'. It is not inverted when viewing with 'Microsoft Office Document Imaging'. Searching of this list produced a few posts about the the photometric setting which sounds like the problem.

My thought was that 'Windows Picture and Fax Viewer' is ignoring the Photometric tag. However that doesn't make complete sense because I can use tiffset to change the photometric on _only_ the source document. Specifically I can use 'tiffset -s 262 <0|1> orig.tif' to toggle back and forth. However, that has no effect on the tiff created by tiffcp. tiffdump verifies that the Photometric tag is getting set properly. This is a problem because it's also inverted in the 'windows previewer' (at least on the windows box I have here).

Can anyone point me in the right direction? I did look at the code, and didn't see any ideas there (other than the idea of just inverting on the data copy... which seems like a bad idea)

Thanks,

Larry