<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ImageMask disappears or gets wrong transform in SVG output"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71861#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ImageMask disappears or gets wrong transform in SVG output"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71861">bug 71861</a>
              from <span class="vcard"><a class="email" href="mailto:dshubin@accusoft.com" title="Dmitry Shubin <dshubin@accusoft.com>"> <span class="fn">Dmitry Shubin</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=89562" name="attach_89562" title="Possible fix or workaround, in Cairo code">attachment 89562</a> <a href="attachment.cgi?id=89562&action=edit" title="Possible fix or workaround, in Cairo code">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=71861&attachment=89562'>[review]</a>
Possible fix or workaround, in Cairo code

I am not really sure if this is an actual fix, or only a hack which allows us
to workaround the issue. This is also the reason why I report it to Poppler
list and not Cairo. 

The patch shall be applied to Cairo source code, in \src directory. Tested with
Cairo 1.10.2 and 1.12.14.

The issue is related to the ImageMask's parent element transform. If
ImageMask's parent is an image, parent transform multiplied by mask's transform
produces correct coordinates. However, if the ImageMask is global, its parent
is a rectangle. In this case ImageMask's transform should be written to SVG as
is, without multiplication to the parent's matrix.

The patch modifies the logic of saving masks from Cairo context to SVG. If
mask's parent is an image, keep existing logic. If it is a rectangle, disregard
parent's transformation matrix, and only use the mask's transformation matrix.</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>