<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>145055</bug_id>
          
          <creation_ts>2006-08-25 02:25 0000</creation_ts>
          <short_desc>media-libs/tiff-3.8.2-r2 - created pdfs are displayed pink in acroread</short_desc>
          <delta_ts>2009-11-10 12:37:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          
          <bug_file_loc>http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357291</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>amg@systec.de</reporter>
          <assigned_to>nerdboy@gentoo.org</assigned_to>
          <cc>fauli@gentoo.org</cc>
    
    <cc>graphics@gentoo.org</cc>
    
    <cc>joho@42byte.de</cc>
    
    <cc>raph@mankin.org.uk</cc>

      

      
          <long_desc isprivate="0">
            <who>amg@systec.de</who>
            <bug_when>2006-08-25 02:25:00 0000</bug_when>
            <thetext>User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.0.6) Gecko/20060805 Firefox/1.5.0.6
Build Identifier: 

pdfs created from tiffs with tiff2pdf -j are display pink in Acrobad Reader
under Linux and Windows. Other pdf Viewers displays the pdf correct. This only
happens with jpeg compression, zip compression is fine.

Reproducible: Always

Steps to Reproduce:
1. tiff2pdf -j -o somepdf.pdf sometiff.tif
2. open with acroread


Actual Results:  
the image has a pink touch

Expected Results:  
normal picture

Debian has a bugreport already with some sample pdfs and additional information:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357291</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2006-12-04 21:46:54 0000</bug_when>
            <thetext>This appears to be a bug in tiff2pdf&apos;s zip compression code (reported upstream), however, there also appears to be a workaround by using tiffcp to compress the file first, then use tiff2pdf without compression.  E.g, try:

tiffcp -c jpeg -o some_other.tif sometiff.tif

tiff2pdf -o somepdf.pdf some_other.tif</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>raph@mankin.org.uk</who>
            <bug_when>2008-06-08 18:33:24 0000</bug_when>
            <thetext>*** Bug 224739 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>joho@42byte.de</who>
            <bug_when>2008-09-08 02:56:31 0000</bug_when>
            <thetext>This seems to be fixed in version 4.0.0. Please read here: https://bugs.launchpad.net/ubuntu/+source/tiff/+bug/194295 (the last entries). Is it possible to add a patch or put the new version in the portage-tree?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2008-09-19 22:44:04 0000</bug_when>
            <thetext>this issue should be fixed in media-libs/tiff-3.8.2-r5 (which will hit the mirrors in a few hours). please reopen if not fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>joho@42byte.de</who>
            <bug_when>2008-09-20 13:46:11 0000</bug_when>
            <thetext>Sorry, not fixed :(

The problem still exists.

&apos;tiffcp -r 16 -c jpeg:80 test.tiff jpeg.tiff
tiff2pdf jpeg.tiff &gt; pdf.pdf&apos;

works, but

&apos;tiff2pdf -j test.tiff &gt; test.pdf&apos;  still has wrong colors.

A friend who uses Ubuntu has the same problem. If he creates a pdf with tiff2pdf and compression, the resulting pdf has the colors wrong. But on his system all is fine. If I open the pdf with kpdf it is not. The link I posted earlier leads to a post from a Debian-maintainer, so I think this fix is also present in Ubuntu.

The problem now is that libtiff is still broken, but Debian/Ubuntu do not have a problem with this? Maybe the problem is not only in the tiff2pdf-code?

PS: I am unable to reopen the bug. I can only leave the status as RESOLVED FIXED</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2008-09-20 13:49:33 0000</bug_when>
            <thetext>reopen then</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2008-09-21 11:45:15 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; A friend who uses Ubuntu has the same problem. If he creates a pdf with
&gt; tiff2pdf and compression, the resulting pdf has the colors wrong. But on his
&gt; system all is fine. If I open the pdf with kpdf it is not. The link I posted
&gt; earlier leads to a post from a Debian-maintainer, so I think this fix is also
&gt; present in Ubuntu.
&gt; 
&gt; The problem now is that libtiff is still broken, but Debian/Ubuntu do not have
&gt; a problem with this? Maybe the problem is not only in the tiff2pdf-code?

I basically updated the tiff2pdf.c file in the source to the latest version of the 3.8/3.9 branch, which should fix the issue. right now, I don&apos;t really know why this is still unfixed, I&apos;ll have to compare to the debian patchset.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2009-07-09 08:21:36 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; (In reply to comment #5)
&gt; I basically updated the tiff2pdf.c file in the source to the latest version of
&gt; the 3.8/3.9 branch, which should fix the issue. right now, I don&apos;t really know
&gt; why this is still unfixed, I&apos;ll have to compare to the debian patchset.

 Any news on this, Markus?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2009-10-03 08:53:18 0000</bug_when>
            <thetext>is this still present in media-libs/tiff-3.9.1?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2009-11-05 18:29:43 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; is this still present in media-libs/tiff-3.9.1?
&gt; 

Let&apos;s rephrase:

Is this still present with 3.9.2 and with jpeg-7 combo?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>amg@systec.de</who>
            <bug_when>2009-11-10 12:37:34 0000</bug_when>
            <thetext>It is not fixed

Tested with:
media-libs/jpeg-7
media-libs/tiff-3.9.1  USE=&quot;jpeg zlib -jbig -nocxx&quot;</thetext>
          </long_desc>
      
    </bug>

</bugzilla>