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 System.NotSupportedException: Path Operation c #88

Open
calibrae opened this issue Sep 7, 2017 · 1 comment
Open

SVGO System.NotSupportedException: Path Operation c #88

calibrae opened this issue Sep 7, 2017 · 1 comment

Comments

@calibrae
Copy link

calibrae commented Sep 7, 2017

Thanks a lot for the lib, I just can't code without it.

After 0.5 I can display SVG exported by Illustrator
I tried to optimize them through SVGO and get this error.

System.NotSupportedException: Path Operation c

Example SVG :
<svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="#ea515a"><path d="M51.855 77.274V30.751a1.557 1.557 0 1 0-3.116 0v46.524a1.557 1.557 0 1 0 3.116-.001z"/><path d="M97.039 19.047c-3.294 0-7.398-1.421-11.744-2.926-5.503-1.906-11.742-4.066-18.211-4.066-7.486 0-12.053 3.28-14.566 6.032a18.933 18.933 0 0 0-2.22 2.976 18.95 18.95 0 0 0-2.22-2.976c-2.513-2.752-7.08-6.032-14.566-6.032-6.47 0-12.708 2.16-18.211 4.066-4.346 1.505-8.451 2.926-11.745 2.926-.861 0-1.558.697-1.558 1.558v62.757c0 .861.697 1.558 1.558 1.558 3.818 0 8.164-1.505 12.764-3.098 5.271-1.825 11.246-3.894 17.192-3.894 5.098 0 9.224 1.688 12.265 5.017a1.558 1.558 0 0 0 2.301-2.101c-2.513-2.752-7.08-6.032-14.565-6.032-6.47 0-12.708 2.16-18.211 4.066-3.684 1.276-7.195 2.492-10.186 2.832V22.086c3.426-.326 7.22-1.64 11.206-3.02 5.271-1.825 11.246-3.894 17.192-3.894 12.024 0 15.17 9.548 15.297 9.95a1.558 1.558 0 0 0 2.978 0c.03-.1 3.196-9.95 15.297-9.95 5.945 0 11.92 2.069 17.192 3.894 3.986 1.38 7.78 2.694 11.206 3.02V81.71c-2.991-.341-6.502-1.556-10.186-2.832-5.503-1.906-11.742-4.066-18.211-4.066-7.486 0-12.053 3.28-14.566 6.032a1.558 1.558 0 1 0 2.301 2.101c3.04-3.329 7.167-5.018 12.265-5.018 5.945 0 11.92 2.069 17.192 3.894 4.6 1.593 8.946 3.098 12.764 3.098.861 0 1.558-.697 1.558-1.558V20.605a1.565 1.565 0 0 0-1.562-1.558z"/><path d="M97.039 88.036c-3.294 0-7.398-1.421-11.744-2.926-5.503-1.906-11.742-4.066-18.211-4.066-7.031 0-11.486 2.893-14.084 5.525h-5.405c-2.598-2.632-7.054-5.525-14.084-5.525-6.47 0-12.708 2.16-18.211 4.066-4.346 1.505-8.45 2.926-11.744 2.926a1.557 1.557 0 1 0 0 3.116c3.818 0 8.164-1.505 12.764-3.098 5.271-1.825 11.246-3.894 17.192-3.894 5.098 0 9.224 1.688 12.265 5.017.295.323.713.507 1.15.507h6.742c.438 0 .855-.184 1.15-.507 3.04-3.329 7.167-5.018 12.265-5.018 5.945 0 11.92 2.069 17.192 3.894 4.6 1.593 8.946 3.098 12.764 3.098a1.557 1.557 0 1 0-.001-3.115z"/></g></svg>

Disabling convertPathData in SVGO solve the error.

@mscrivo
Copy link

mscrivo commented Sep 25, 2018

Trying to read the following SVG also leads to the same error: https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg

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

No branches or pull requests

2 participants