Bug 271444 - Okular renders PDFs with transparent/clipped images incorrectly...
Summary: Okular renders PDFs with transparent/clipped images incorrectly...
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.10.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 20:41 UTC by splittingpixels
Modified: 2011-04-21 21:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
A .pdf file which demonstrates the document rendering bug. (89.08 KB, application/pdf)
2011-04-21 20:41 UTC, splittingpixels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description splittingpixels 2011-04-21 20:41:38 UTC
Created attachment 59187 [details]
A .pdf file which demonstrates the document rendering bug.

Version:           0.10.5 (using KDE 4.4.5) 
OS:                Linux

If a .pdf contains a transparent image, AND if that transparent image has a clip applied to it (ie. geometry that hides/reveals parts of the image) then the colour of the transparent parts of the image get mangled.  Only those portions of the image which are either entirely opaque or entirely transparent are correct, while everything else in between has it's colour altered.

The attached .pdf was tested in Photoshop, Inkscape, GIMP, and Acrobat Reader -- all of these applications rendered the document correctly, so it's certainly an Okular issue.

Reproducible: Always

Steps to Reproduce:
1.) Load the attached file in Okular.
2.) Load it in another application like Acrobat Reader 6.0.0, or GIMP 2.6.11.
3.) Compare.

Actual Results:  
1.) Upon loading the attached document into Okular, green regions will be visible on the page, yet there is no green in the document.
2.) Now, compare to the very same document rendered by Acrobat Reader, GIMP, etc, and you will see that the document looks quite different (no green, only yellow and white)

Expected Results:  
Okular's rendering of the document should match that of the other applications listed above.  It is not rendering the document correctly.

OS: Linux (i686) release 2.6.32-31-generic
Compiler: cc
Comment 1 Pino Toscano 2011-04-21 21:13:56 UTC
Okular does not render PDF documents on its own, but uses the Poppler library to load and render PDF documents, so rendering issues are generally not Okular issues.
You most probably have an old version of the Poppler library, so please upgrade it to 0.16.4 (the last stable). I cannot reproduce the problem with the development serie of Poppler.
Comment 2 splittingpixels 2011-04-21 21:49:26 UTC
GIMP, Inkscape, and pdf2svg all use Poppler as well.  If the flaw was in 
Poppler, these applications would suffer the same bug, yet they do not.  
Only Okular does.

Nevertheless, I'll see if I can force an update to the latest version of 
Poppler and report back on whether or not that resolved the Okular issue.
Comment 3 Pino Toscano 2011-04-21 21:57:58 UTC
(In reply to comment #2)
> GIMP, Inkscape, and pdf2svg all use Poppler as well.  If the flaw was in 
> Poppler, these applications would suffer the same bug, yet they do not.  
> Only Okular does.

All of those use a different Poppler renderer.
Please don't jump to conclusions when you have no idea of how things work.

> Nevertheless, I'll see if I can force an update to the latest version of 
> Poppler and report back on whether or not that resolved the Okular issue.

This is a Poppler issue, not an Okular one.