lifelike / countersheetsextension

Inkscape extension for the layout of sheets of cards, tiles, or counters for boardgames.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG masks do not work with replaced images

lifelike opened this issue · comments

It is not possible to use an image as a mask for some other SVG object in a template and then set the image to use to change the shape of the mask.

That is because when adding a mask to an object the image is moved from the SVG away to the defs list, as child to a newly created mask-object. The mask-object is referred to from the masked object's mask attribute. When running the extension there needs to be code that detects the mask attribute, duplicates the mask, and sets the image correctly in the new mask. Probably needs some transform fixes as well.