Bug 348580

Summary: PDF gradient incorrectly rendered
Product: [Applications] okular Reporter: vanboxem.ruben
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid
Priority: NOR    
Version: 0.22.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: testcase

Description vanboxem.ruben 2015-06-02 11:20:15 UTC
PDF gradients are incorrectly rendered in Okular.


Reproducible: Always

Steps to Reproduce:
When rendering the PDF file generated by pdflatex from this source:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shadings}

\begin{document}
\begin{tikzpicture}
\shade[shading=color wheel, opacity=.6, shading angle=220] (0,0) circle (1);
\end{tikzpicture}
\end{document}

Actual Results:  
Okular renders this incorrectly: grid lines and very bad gradient resolution (see screenshots). The grid lines disappear when "shading angle=220" is removed from the source.

Expected Results:  
The gradient should render smoothly (see screenshots)

IIRC, I reported a bug about this to qpdfview, which didn't show the grid lines as okular does, but did show a squar texture pattern, albeit interpolated.
Comment 1 Albert Astals Cid 2015-07-05 22:13:37 UTC
Please attach a pdf file
Comment 2 vanboxem.ruben 2015-07-06 15:37:48 UTC
Created attachment 93502 [details]
testcase

PDF generated from the document showing the bad rendering.

I thought I uploaded the PDF. Sorry about that.
Comment 3 Albert Astals Cid 2015-07-07 21:30:44 UTC
This is a bug in poppler the library we use to render pdf files. Please report a bug at https://bugs.freedesktop.org/
Comment 4 vanboxem.ruben 2015-07-08 07:21:46 UTC
Reported as https://bugs.freedesktop.org/show_bug.cgi?id=91262