every time I create an object and move it around, the XML code in the SVG file has somethink like:
<path style="opacity:1.0000000;fill:#f9f010;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:1.0000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:6.9999999;stroke-opacity:1.0000000" id="path2113" d="M 307.26816,268.95933 L 329.04654,320.12941 L 384.25033,313.40500 L 350.82492,357.85068 L 384.25032,402.29635 L 329.04654,395.57194 L 307.26816,446.74203 L 285.48978,395.57194 L 230.28599,402.29635 L 263.71140,357.85068 L 230.28599,313.40500 L 285.48977,320.12942 L 307.26816,268.95933 z " transform="translate(-4.768158,-0.350677)" />
how is it possible to appy the translation once and for all to the coordinates given in d="...", instead of having them calculated by every SVG viewer again? when creating an object near the final position, every time I use the align function I get such a transform="..." in the file, instead of changing the points directly.
Alexander Roalter wrote:
every time I create an object and move it around, the XML code in the SVG file has somethink like:
<path style="opacity:1.0000000;fill:#f9f010;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:1.0000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:6.9999999;stroke-opacity:1.0000000" id="path2113" d="M 307.26816,268.95933 L 329.04654,320.12941 L 384.25033,313.40500 L 350.82492,357.85068 L 384.25032,402.29635 L 329.04654,395.57194 L 307.26816,446.74203 L 285.48978,395.57194 L 230.28599,402.29635 L 263.71140,357.85068 L 230.28599,313.40500 L 285.48977,320.12942 L 307.26816,268.95933 z " transform="translate(-4.768158,-0.350677)" />
how is it possible to appy the translation once and for all to the coordinates given in d="...", instead of having them calculated by every SVG viewer again? when creating an object near the final position, every time I use the align function I get such a transform="..." in the file, instead of changing the points directly.
If your SVG file looks like this, you are saving it as "Plain SVG"; it has none of the other attributes Inkscape would but in the file. As a work around, convert the object to a path (Path->Object to Path) and move it a tiny bit. The transform attribute should disappear.
participants (2)
-
Alexander Roalter
-
Mr. Shawn H. Corey