Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

--remove-invisible-elements no removes visible element with <clipPath containing <use refering to a <g roup containing two <path #211

Closed
JoKalliauer opened this issue Feb 21, 2020 · 1 comment

Comments

@JoKalliauer
Copy link
Contributor

I am processing https://commons.wikimedia.org/wiki/File:Flag-map_of_the_world.svg

svgcleaner in.svg.txt out.svg.txt

removes objects

maybe related to #201

Input

in.svg.txt

  <clipPath id="db">
   <use id="use665" height="1" width="1" xlink:href="#m2"/>
  </clipPath>
...
 <g id="m2" fill="none" stroke="#000" stroke-miterlimit="3.983" stroke-width=".578">
  <path id="path14208" d="m796.6227 1097.4985c.2848 ..." transform="matrix(.87125 0 0 .85965 -3.35 7.69)"/>
  <path id="path14210" d="m735.3095 1012.7485c.2906 ..."/>
 </g>
rsvg Inkscape
in_rsvg in_Ink

Output

out.svg.txt

rsvg Inkscape
out_rsvg out_Ink

Copyright

source: https://commons.wikimedia.org/wiki/File:Flag-map_of_the_world.svg

Author: https://en.wikipedia.org/wiki/User:Transparent_6lue

License: Public Domain

@JoKalliauer JoKalliauer changed the title --remove-invisible-elements no removes visible element with <clipPath coantaining <use refering to a <g roup containing two <path --remove-invisible-elements no removes visible element with <clipPath containing <use refering to a <g roup containing two <path Feb 21, 2020
@JoKalliauer
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant