Hi.
EDIT: Have a pull request.
Replace the get_bounding_box with this:
# @staticmethod
def get_bounding_box(self, node: BaseElement) -> tuple[float, float, float, float] | None:
node_id = node.get_id()
def q(arg: str) -> float:
# Ask Inkscape for the bbox of this id in page coordinates (px)
out = inkscape(
self.options.input_file,
**{
"query-id": node_id,
arg: None,
}
)
return float(str(out).strip())
x = q("query-x")
y = q("query-y")
width = q("query-width")
height = q("query-height")
return x, y, width, height
Before & After images attached - note the cape separated between fg/bg layer in particular

