Kozea / CairoSVG

Convert your vector images
https://courtbouillon.org/cairosvg
GNU Lesser General Public License v3.0
773 stars 151 forks source link

is there any support for clippath? #343

Open mrmrfan opened 3 years ago

mrmrfan commented 3 years ago

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!

liZe commented 3 years ago

Hello.

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

mrmrfan commented 3 years ago

I have sent the SVG files via email.

liZe commented 3 years ago

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:.

mrmrfan commented 3 years ago

Thank you! It helps!

grewn0uille commented 2 years ago

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 commented 2 years ago

Hello!

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

The CourtBouillon Team 🍲