Bug 24081 - problem combining gradient with transparency
Summary: problem combining gradient with transparency
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 05:57 UTC by Tillmann Falck
Modified: 2010-11-04 14:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
pdf containing gradient (4.42 KB, application/pdf)
2009-09-22 05:57 UTC, Tillmann Falck
Details
bzip2 compressed ppm that shows misrendering (1.85 KB, application/x-bzip2)
2009-09-22 05:58 UTC, Tillmann Falck
Details
gradient_transparency.pdf (46.96 KB, application/pdf)
2010-03-05 07:50 UTC, Bernhard Reiter
Details

Description Tillmann Falck 2009-09-22 05:57:54 UTC
Created attachment 29754 [details]
pdf containing gradient

Viewing the attached PDF in evince or KPDF (from CentOS 5.3) or okular (Ubuntu karmic) shows horizontal lines in the gradient that do not show in acroread. The effect is more pronounced in KPDF/okular where the lines are darker than in evince in which they are white.

Also attached a ppm generated with "pdftoppm version 0.10.7" which shows the same behavior as KPDF/okular.

The gradient is linear with an opaqueness of 70%. Fully opaque gradients render fine as well as solid fills with an opaqueness less than one.

A minimal latex file to reproduce the behavior is

----
\documentclass[a4paper]{article}

\usepackage{fullpage}
\usepackage[x11names]{xcolor}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
 \shade[top color=Green4, bottom color=Green2,fill opacity=.7] (0,0) rectangle (5,23);
\end{tikzpicture}

\end{document}
----

Best regards
Tillmann
Comment 1 Tillmann Falck 2009-09-22 05:58:58 UTC
Created attachment 29755 [details]
bzip2 compressed ppm that shows misrendering
Comment 2 Carlos Garcia Campos 2009-09-22 06:26:49 UTC
The pdf looks perfect with poppler 0.12 and cairo from git master.
Comment 3 Bernhard Reiter 2010-03-05 07:50:06 UTC
Created attachment 33790 [details]
gradient_transparency.pdf

I think I might experience a related problem. The attached file gradient_transparency.pdf (made with scribus 1.3.5.1) renders fine with acroread 9, displaying a "spotlight" (achieved by an ellipse with a radial gradient with transparency) in the lower left corner. In evince 2.28.1 (with poppler 0.12.0 (cairo), on Ubuntu 9.10), there's just a white ellipse instead.
Comment 4 Carlos Garcia Campos 2010-03-05 08:37:15 UTC
(In reply to comment #3)
> Created an attachment (id=33790) [details]
> gradient_transparency.pdf
> 
> I think I might experience a related problem. The attached file
> gradient_transparency.pdf (made with scribus 1.3.5.1) renders fine with
> acroread 9, displaying a "spotlight" (achieved by an ellipse with a radial
> gradient with transparency) in the lower left corner. In evince 2.28.1 (with
> poppler 0.12.0 (cairo), on Ubuntu 9.10), there's just a white ellipse instead.
> 

It works with cairo backend, but you need cairo >= 1.9.4
Comment 5 Albert Astals Cid 2010-11-04 14:06:33 UTC
Should be fixed in the splash backend too with poppler >= 0.16.0 when we release it.


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.