[Poppler-bugs] [Bug 71861] ImageMask disappears or gets wrong transform in SVG output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 20 22:43:06 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=71861

--- Comment #3 from Dmitry Shubin <dshubin at accusoft.com> ---
Created attachment 89562
  --> https://bugs.freedesktop.org/attachment.cgi?id=89562&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20131121/1413b0a7/attachment.html>


More information about the Poppler-bugs mailing list