inkscape-applytransforms icon indicating copy to clipboard operation
inkscape-applytransforms copied to clipboard

`circle` elements don't get transformed

Open SebKuzminsky opened this issue 5 years ago • 6 comments

Here's the original SVG (with .txt extension added so github accepts it...): plate.svg.txt

The original SVG rendered as PNG: plate

SVG with "Apply Transform" run, rendered as PNG: plate-transformed

And finally, the transformed SVG: plate-transformed.svg.txt

It looks like the outline had the transformation applied, but the circles did not.

SebKuzminsky avatar Jun 24 '19 00:06 SebKuzminsky

Thank you for the very good bug report, I'll give this a look.

Klowner avatar Jun 24 '19 01:06 Klowner

@SebKuzminsky I'm pretty sure you should be good to go :+1:

Klowner avatar Jun 24 '19 16:06 Klowner

The transformed <circle> elements still have transform attributes:

    <circle
       transform="matrix(1.000000,0.000000,0.000000,-1.000000,0.000000,0.000000)"
       id="circle9"
       style="stroke-dasharray:none;stroke-width:0.13096206843;stroke-miterlimit:4;fill:none"
       stroke-width="0.35 px"
       stroke="#000000"
       r="3.3782"
       cy="-27.7016123259"
       cx="47.9806" />

I'd expect the circle elements to have the transform applied and not have a "residual" transform attribute, just like what's done to the path element.

SebKuzminsky avatar Jun 24 '19 16:06 SebKuzminsky

Whoops, you are correct

Klowner avatar Jun 24 '19 16:06 Klowner

I see, it actually adds transform matrices.. that ain't right

Klowner avatar Jun 24 '19 18:06 Klowner

Testing with the provided original SVG and comparing with the output from this extension it looked like this is fixed now.

ziegenberg avatar Jan 09 '21 17:01 ziegenberg

jup. please close this issue

vmario89 avatar Sep 02 '22 15:09 vmario89