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

[featureRequest] remove duplicate clipPath #234

Open
JoKalliauer opened this issue Apr 2, 2021 · 0 comments
Open

[featureRequest] remove duplicate clipPath #234

JoKalliauer opened this issue Apr 2, 2021 · 0 comments

Comments

@JoKalliauer
Copy link
Contributor

both.svg.txt contains several duplicate useless clipPath (>100KB), I would like to merge them

input

  <clipPath id="f">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>
  <clipPath id="g">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>
  <clipPath id="h">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>
  <clipPath id="i">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>
  <clipPath id="j">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>

output

  <clipPath id="f">
   <path fill="#000000" stroke="none" d="M -5.44 -5.63 L 5.43 -5.63 L 5.43 5.62 L -5.44 5.62 Z"/>
  </clipPath>

Copyright

source: https://commons.wikimedia.org/wiki/File:India_roadway_map.svg

author: CC-by-sa PlaneMad/Wikimedia

license: CC BY SA 3.0

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