<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Background image is much too dark"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92592">92592</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Background image is much too dark
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Thomas.Freitag@alfa.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=119063" name="attach_119063" title="PDF with background image that is rendered too dark">attachment 119063</a> <a href="attachment.cgi?id=119063&action=edit" title="PDF with background image that is rendered too dark">[details]</a></span>
PDF with background image that is rendered too dark

The background image in the attached PDF is rendered much too dark with
poppler.

The PDF uses a transparency group with fill and stroke opacity of 0.35:

gs /GS1
  gfx state dict: << /CA 0.35 /OP false /OPM 0 /Type /ExtGState /ca 0.35 /op
false >>

Inside this transparency group a pattern colorspace is used:

cs /Pattern
scn /P0

The background image is part of the pattern colorspace, more exactly the
pattern colorspace is this image, and before the image is painted the fill
opacity is reset to 1:

gs /ca0
  gfx state dict: << /Type /ExtGState /ca 1 >>
Do /img0

So inside the pattern the fill opacity is 1, but the pattern itself should be
set with fill opacity of 1.

In this PDF splash is not able to use its own tilingPatternFill, so it falls
back to Gfx::drawForm. But because Gfx::drawForm draws directly in splash
bitmap, the fill opacity of the image is used which overwrites the fill opacity
of the pattern.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>