Skip to content

Save As Optimised SVG Removes Text #312

@Lauro235

Description

@Lauro235

When I Save As Optimised SVG the text is removed. I have provided some context to help the debugging process. Would appreciate your thoughts on what the problem is, if there is a solution and if not, when one will be tabled for.

Inkscape Version - 1.2.1 (9c6d41e410, 2022-07-14)
Windows 11 Home Edition

Scour Version
Scour SVG Output
Scour Options

If I compare the images they look like this.

Inkscape optimised image
Minified with Iconly SVG-Cleaner

Here is the broken code that is outputted.

 <text id="text" transform="matrix(1.0581 0 0 1.0581 1486.5 491.84)" fill="#0f172a"  font-family="Comfortaa" font-size="40px" stroke-width="0" style="shape-inside:url(#rect3496);white-space:pre" xml:space="preserve"/>
 <!--
This is the working code from SVG-Cleaner

  <text xml:space="preserve" transform="translate(1486.48 491.835) scale(1.05805)" style="font-size:40px;font-family:Comfortaa;-inkscape-font-specification:Comfortaa;white-space:pre;shape-inside:url(#a);fill:#0f172a;stroke:#0f172a;stroke-width:0;stroke-linecap:round;stroke-dasharray:none"><tspan x="-1341.772" y="-304.746"><tspan style="-inkscape-font-specification:'Comfortaa, @wght=700';font-variation-settings:'wght' 700">Shapes</tspan></tspan></text>
 -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions