Bug 91262

Summary: PDF gradient incorrectly rendered
Product: poppler Reporter: Ruben Van Boxem <vanboxem.ruben>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: cloos
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Test case

Description Ruben Van Boxem 2015-07-08 07:11:36 UTC
Created attachment 116999 [details]
Test case

The PDF gradient generated by following LaTeX document is rendered incorrectly:

\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}

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.
Comment 1 Ruben Van Boxem 2015-07-08 07:22:03 UTC
Original KDE bug report: https://bugs.kde.org/show_bug.cgi?id=348580
Comment 2 James Cloos 2015-07-08 16:45:12 UTC
cairo also affected.  (tested in evince)
Comment 3 Thomas Freitag 2016-03-15 09:14:55 UTC
Splash part solved with solution of bug 94441, move to cairo!
Comment 4 Adrian Johnson 2016-03-15 09:51:55 UTC
The cairo side was fixed in bug 88394.

BTW, using PostScript functions is a very suboptimal way of generating a conical gradient. Conical gradients can easily be creating using Type 6 shadings.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.