CairoSVG
CairoSVG copied to clipboard
Add custom css during convertion
The doc says the styling is possible via CSS. It would be good to add a custom css stylesheet as an argument for the convertion.
custom_css = """
path {
color: #00FF00;
fill: #00FF00;
}
"""
cairosvg.svg2png(
url="/path/to/input.svg", write_to="/tmp/output.png", style=custom_css)
expected: Green png at the end
Thanks
I agree. I am generating SVGs on the fly using python and that would be a super useful feature.