CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

is there any support for clippath?

Open mrmrfan opened this issue 3 years ago • 6 comments

There is a rect path with yellow color and a circle clippath around the rect in the svg.

In web explorer, the color works fine for showing the yellow color.

However, it all goes black when it is converted to png. Can I solve this problem? Thanks!

mrmrfan avatar Aug 24 '21 04:08 mrmrfan

Hello.

clipPath is supposed to be supported. Could you please share your SVG file?

liZe avatar Aug 24 '21 08:08 liZe

I have sent the SVG files via email.

mrmrfan avatar Aug 24 '21 10:08 mrmrfan

This problem happens because the clipPath tags are not in a defs tag. The clipPath is drawn, just as a normal path. That’s a bug in CairoSVG, but at least now you have a workaround :wink:.

liZe avatar Aug 24 '21 11:08 liZe

Thank you! It helps!

mrmrfan avatar Aug 24 '21 12:08 mrmrfan

Hello!

As you may have noticed, CairoSVG isn’t a full-of-life project and it hasn’t seen much activity for a year…

For a long time, CairoSVG was used by WeasyPrint. To render SVG, PNG or PDF, CairoSVG depends on Cairo, which brought many bugs and limitations in WeasyPrint (and CairoSVG). This led us to remove the Cairo dependency from WeasyPrint, and so to remove the CairoSVG dependency.

Since then, we didn’t do really much on CairoSVG. And, to be honest, we’re not sure about what to do with this project 🤔.

A lot of questions have emerged in our heads. Can it still be a CourtBouillon project, shall we entrust it to someone else? Do people actually expect new features, or only bug fixes? Maybe people don’t expect anything?

And in fact, we can’t answer these questions all by ourselves because we’re not you, we’re not the people using CairoSVG.

So, to know you, your use of CairoSVG and your expectation about the project, we prepared a (short, don’t worry) survey.

Your answers to this survey will help us a lot to come up to a decision about CairoSVG.

The survey is open until the end of April!

The CourtBouillon Team 🍲

Edit: the survey is now closed. Results will be publish soon!

grewn0uille avatar Mar 07 '22 10:03 grewn0uille

Hello!

The results of the survey have been published! You can discover where CairoSVG is going in our latest blog article 📰.

The CourtBouillon Team 🍲

grewn0uille avatar May 19 '22 09:05 grewn0uille