Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeOffCanvasPaths breaks file #1732

Open
JoKalliauer opened this issue Jan 6, 2023 · 1 comment
Open

removeOffCanvasPaths breaks file #1732

JoKalliauer opened this issue Jan 6, 2023 · 1 comment
Labels

Comments

@JoKalliauer
Copy link

Describe the bug
removeOffCanvasPaths removes the yellow stars in china

To Reproduce
Steps to reproduce the behavior:

  1. Open Input.svg in https://jakearchibald.github.io/svgomg/ and activate "Remove out-of-bounds path"

Expected behavior
Input and Output should look the same.

  <defs>
    <path id="a" d="M0 1h.5L0 0z"/>
  </defs>

should not get deleted

Screenshots
Input
Input

Output
Output

Desktop:
https://jakearchibald.github.io/svgomg/

Licsense

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

author: https://commons.wikimedia.org/wiki/User:Transparent_6lue

license: Public Domain by the author

@JoKalliauer JoKalliauer added the bug label Jan 6, 2023
@hieuthi
Copy link

hieuthi commented Feb 12, 2023

Encountering the same problem. From my research it seems the intersects function is flawed #1646 . Maybe using a third party library can help #1289 . I might try to dig more into this if this function ends up to be crucial to my workflow.

Anyone has an idea or direction to handle this problem please share it.

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

No branches or pull requests

2 participants