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

Cannot convert svg with defs and clipPath #317

Closed
jj09 opened this issue Jun 19, 2017 · 1 comment
Closed

Cannot convert svg with defs and clipPath #317

jj09 opened this issue Jun 19, 2017 · 1 comment

Comments

@jj09
Copy link

jj09 commented Jun 19, 2017

Hello,

The library is not converting the following svg:

<svg x='0px' y='0px' width='160px' height='155px' viewBox='0 0 160 155' enable-background='new 0 0 160 155'>
    <g>
        <path fill='#DCDFE2' stroke='#E3E6E8' stroke-width='38' stroke-miterlimit='10' d='M79.121,63.659l4.5,11.202l0.844,2.102
            l2.257,0.151l12.043,0.815l-9.263,7.741l-1.738,1.453l0.552,2.196l2.946,11.707L81.04,94.609l-1.918-1.208l-1.918,1.204
            l-10.222,6.418l2.946-11.707l0.552-2.196l-1.738-1.449l-9.263-7.741l12.043-0.815l2.257-0.151l0.844-2.102L79.121,63.659
             M79.121,53.985l-7.842,19.531l-21.002,1.424L66.43,88.436l-5.134,20.411l17.826-11.192l17.826,11.192l-5.134-20.411l16.153-13.496
            l-21.002-1.424L79.121,53.985L79.121,53.985z M79.121,53.985l-7.842,19.531l-21.002,1.424L66.43,88.436l-5.134,20.411
            l17.826-11.192l17.826,11.192l-5.134-20.411l16.153-13.496l-21.002-1.424L79.121,53.985L79.121,53.985z'/>
        <g>
            <defs>
                <rect id='SVGID_1_' x='-12.265' y='78.229' transform='matrix(0.6906 -0.7232 0.7232 0.6906 -68.888 118.8596)' width='233.49' height='123.436'/>
            </defs>
            <clipPath id='SVGID_2_'>
                <use xlink:href='#SVGID_1_'  overflow='visible'/>
            </clipPath>
            <path clip-path='url(#SVGID_2_)' fill='#DCDFE2' stroke='#DCDFE2' stroke-width='38' stroke-miterlimit='10' d='M79.121,63.659
                l4.5,11.202l0.844,2.102l2.257,0.151l12.043,0.815l-9.263,7.741l-1.738,1.453l0.552,2.196l2.946,11.707L81.04,94.609l-1.918-1.208
                l-1.918,1.204l-10.222,6.418l2.946-11.707l0.552-2.196l-1.738-1.449l-9.263-7.741l12.043-0.815l2.257-0.151l0.844-2.102
                L79.121,63.659 M79.121,53.985l-7.842,19.531l-21.002,1.424L66.43,88.436l-5.134,20.411l17.826-11.192l17.826,11.192
                l-5.134-20.411l16.153-13.496l-21.002-1.424L79.121,53.985L79.121,53.985z M79.121,53.985l-7.842,19.531l-21.002,1.424
                L66.43,88.436l-5.134,20.411l17.826-11.192l17.826,11.192l-5.134-20.411l16.153-13.496l-21.002-1.424L79.121,53.985L79.121,53.985
                z'/>
        </g>
    </g>
</svg>

(*) If you remove the second part (enclosed in g tag) it works
(**) Also reported in FFImageLoading issue tracker

@mattleibow
Copy link
Contributor

Thanks for reporting this issue. I will have a look at it.

I am closing this issue here as I am moving it to the repository with the SVG bits: mono/SkiaSharp.Extended#8

@mattleibow mattleibow added this to Complete / Invalid in Triage May 5, 2018
@mono mono locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Triage
  
Done
Development

No branches or pull requests

2 participants