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

SVGO fails without any indication #220

Closed
theKashey opened this issue Nov 5, 2018 · 2 comments
Closed

SVGO fails without any indication #220

theKashey opened this issue Nov 5, 2018 · 2 comments
Labels

Comments

@theKashey
Copy link

🐛 Bug Report

SVGR fails conversion with SVGO enabled. No indication of an error or usable output is given.

To Reproduce

SVGR this

<svg viewbox="0 0 330 360">
<defs>
  <pattern id="img1" patternUnits="userSpaceOnUse" width="330" height="330">
    <image xlink:href="https://avatars0.githubusercontent.com/u/582410?s=460&v=4" x="0" y="0" width="330" height="330" />
  </pattern>
</defs>
    <path 
    d="M177.360803,7.29527857 L278.360803,65.1843948 C294.218651,74.2734722 304,91.1538351 304,109.431764 L304,224.568236 C304,242.846165 294.218651,259.726528 278.360803,268.815605 L177.360803,326.704721 C161.652249,335.708229 142.347751,335.708229 126.639197,326.704721 L25.6391971,268.815605 C9.78134881,259.726528 6.71988505e-14,242.846165 5.68434189e-14,224.568236 L1.42108547e-14,109.431764 C-4.26160789e-15,91.1538351 9.78134881,74.2734722 25.6391971,65.1843948 L126.639197,7.29527857 C142.347751,-1.70822924 161.652249,-1.70822924 177.360803,7.29527857 Z" 
    id="path-1"
      fill="url(#img1)"
    ></path>    
</svg>

Expected behavior

Error should be given. Output without SVGO optimization should be provided

Link to repl or repo (highly encouraged)

https://jsfiddle.net/1tLcxewm/
SVG as is posted to https://svgr.now.sh

@gregberge
Copy link
Owner

Thanks for reporting it, the error is correctly reported in svgr but not on the website. It is only a website issue.

@gregberge
Copy link
Owner

Closed as outdated.

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