Description of problem: When trying to convert LZW compressed TIFF image to pdf with inverted colors (-i option) the output is a blank - white pdf. Version-Release number of selected component (if applicable): libtiff-3.8.2-7.el5_3.3 libtiff-3.6.1-12.el4_8.3 libtiff-3.8.2-13.fc11 How reproducible: always Steps to Reproduce: 1. Get a TIFF LZW compressed image (attached lzw.tif) 2. tiff2pdf -i lzw.tif -o lzw.pdf 3. view lzw.pdf with a viewer (e.g. evince) Actual results: White - blank pdf. Expected results: PDF with inverted colors image as with not compressed TIFF image. Additional info: When converting TIFF without a compression the output is ok. This bug appers on RHEL-4, RHEL-5 and also in FEDORA (tested on FC11).
Created attachment 350916 [details] LZW compressed TIFF image
As near as I can tell, this is not a libtiff bug. What tiff2pdf does with -i is just to put a line like this into the output: /Decode [ 1 0 1 0 1 0 1 0 ] so it's just relying on the PDF viewer to perform the color transformation. I don't have a "real" Adobe PDF reader at hand, but when I look at the resulting file with Apple's Preview, the colors do get inverted. So I think what you've got here is a viewer deficiency, and you should complain about whatever PDF viewer you're using. I concur that evince in particular isn't getting it right, so I'll reassign this bug there. BTW, I don't observe any effect at all of compressing or not compressing the image, when testing this with libtiff 3.9.2. Possibly there was some issue there with older releases.
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).