RazrFalcon / svgcleaner

svgcleaner could help you to clean up your SVG files from the unnecessary data.
GNU General Public License v2.0
1.63k stars 94 forks source link

A circle/dot in this SVG is getting lost after cleaning (default settings) #181

Open onassar opened 6 years ago

onassar commented 6 years ago

A circle/dot in this SVG is getting lost after cleaning (default settings). Here's the file: https://file.io/hIfOVQ

Here's the before view: https://i.imgur.com/20itqOf.png

Here's the after view: https://i.imgur.com/PYoTXBr.png

RazrFalcon commented 6 years ago

Here's the file

404 for me

onassar commented 6 years ago

Whoops. Here: https://files.fm/f/32gjen2u

Or attached file (in zip) uncompressed.svg.zip

RazrFalcon commented 6 years ago

Yes. This is not a dot, but a zero sized line, that should be rendered as a dot by the SVG spec, but svgcleaner removes it, because it has zero length.

<line class="st12" x1="197" y1="103.1" x2="197" y2="103.1"/>
onassar commented 6 years ago

Is that correct?

RazrFalcon commented 6 years ago

What do you mean? It's a svgcleaner bug.

onassar commented 6 years ago

Okay thank you. Let me know if you can fix it and I will test :)

onassar commented 5 years ago

The attached SVG is also losing some information during the cleaning. It should like this this: https://i.imgur.com/RjudeFE.png But after the cleaning it looks like this: https://i.imgur.com/WfTv3Z7.png

vctruwaqvnco.original.svg.zip

RazrFalcon commented 5 years ago

Yes. That is the same issue.

onassar commented 5 years ago

Okay any timeline on a potential fix?

RazrFalcon commented 5 years ago

As you may notice the project is kinda dead, so...

Maybe in few month, maybe in a few years.

onassar commented 5 years ago

Oh damn.. alright..