Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145055 - <media-libs/tiff-4.0.3-r1: created pdf(s) are displayed pink in app-text/acroread
Summary: <media-libs/tiff-4.0.3-r1: created pdf(s) are displayed pink in app-text/acro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
: 224739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-25 02:25 UTC by Syed Amer Gilani
Modified: 2012-11-03 04:39 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Syed Amer Gilani 2006-08-25 02:25:00 UTC
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
Comment 1 Steve Arnold archtester gentoo-dev 2006-12-04 21:46:54 UTC
This appears to be a bug in tiff2pdf'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
Comment 2 Raphael Mankin 2008-06-08 18:33:24 UTC
*** Bug 224739 has been marked as a duplicate of this bug. ***
Comment 3 Johannes H. 2008-09-08 02:56:31 UTC
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?
Comment 4 Markus Meier gentoo-dev 2008-09-19 22:44:04 UTC
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.
Comment 5 Johannes H. 2008-09-20 13:46:11 UTC
Sorry, not fixed :(

The problem still exists.

'tiffcp -r 16 -c jpeg:80 test.tiff jpeg.tiff
tiff2pdf jpeg.tiff > pdf.pdf'

works, but

'tiff2pdf -j test.tiff > test.pdf'  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
Comment 6 Markus Meier gentoo-dev 2008-09-20 13:49:33 UTC
reopen then
Comment 7 Markus Meier gentoo-dev 2008-09-21 11:45:15 UTC
(In reply to comment #5)
> 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?

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't really know why this is still unfixed, I'll have to compare to the debian patchset.
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-09 08:21:36 UTC
(In reply to comment #7)
> (In reply to comment #5)
> 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't really know
> why this is still unfixed, I'll have to compare to the debian patchset.

 Any news on this, Markus?
Comment 9 Markus Meier gentoo-dev 2009-10-03 08:53:18 UTC
is this still present in media-libs/tiff-3.9.1?
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2009-11-05 18:29:43 UTC
(In reply to comment #9)
> is this still present in media-libs/tiff-3.9.1?
> 

Let's rephrase:

Is this still present with 3.9.2 and with jpeg-7 combo?
Comment 11 Syed Amer Gilani 2009-11-10 12:37:34 UTC
It is not fixed

Tested with:
media-libs/jpeg-7
media-libs/tiff-3.9.1  USE="jpeg zlib -jbig -nocxx"
Comment 12 David Gasaway 2011-04-29 00:23:26 UTC
Apparently, this still not fixed in 3.9.5.  The ubuntu maintainer ported tiff2pdf from 4.0.  Is this not workable for gentoo?  Otherwise, see patch applied in suse (below).  Thanks.

https://bugzilla.novell.com/show_bug.cgi?id=599475
Comment 13 Raphael Mankin 2011-04-29 08:50:54 UTC
Gentoo's latest version of tiff2pdf appears to be 3.9.4.

One would have to step outside the portage system to get a later version, and that would rot up all the package dependency analysis.
Comment 14 David Gasaway 2011-04-29 15:38:14 UTC
I don't follow, Raphael.  I installed 3.9.5 from portage (~amd64).
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2011-04-29 15:42:27 UTC
So this bug is already fixed by tiff-4.0.0_beta7 from Portage?
Comment 16 Raphael Mankin 2011-04-29 16:05:01 UTC
David, I have just updated my portage tree and it still wants to install tiff-3.9.4-r1 (x86).
Comment 17 David Gasaway 2011-05-02 20:37:37 UTC
Raphael: I guess you're running stable, because 3.9.5 is there in unstable, x86 included.  http://packages.gentoo.org/package/media-libs/tiff

Samuli: Theoretically it is fixed upstream with the 4.0.0 beta, but I'm not keen on installing a masked beta of a fundamental library like libtiff. :)
Comment 18 Samuli Suominen (RETIRED) gentoo-dev 2011-12-30 15:33:04 UTC
Fixed by tiff-4.0.0 final which is now in portage.   Will be stabilized in 30 days.
Comment 19 David Gasaway 2012-01-16 00:28:52 UTC
I have the same issues with tiff-4.0.0.
Comment 20 Pacho Ramos gentoo-dev 2012-06-16 08:41:10 UTC
Still valid with 4.0.1-r1?
Comment 21 David Gasaway 2012-06-17 07:32:45 UTC
Yes, I still have the same issues.
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 08:08:54 UTC
So, are we talking of the ancient Linux acroread that is in Portage alone, or are they showing up pink also in up-to-date Adobe Acrobat Reader in propietary environment, like Windows or Mac?

I mean, I'm all for lastriting acroread, it's long overdue anyways for security issues.
Comment 23 David Gasaway 2012-06-18 04:49:40 UTC
I used Okular.  Same results with Evince and GIMP.  The original bug report is misleading.  In the past, Linux viewers had bugs that ignored the bad value produced by tiff2pdf, while the Adobe reader did not.  In other words, the Adobe reader produced the correct results.  The bugs in Okular and Evince, at least, have been corrected.  So results are equally bad in all viewers now.
Comment 24 Samuli Suominen (RETIRED) gentoo-dev 2012-11-03 04:39:23 UTC
patch applied to 4.0.3-r1 and trying to figure out upstream status too.