Kozea / CairoSVG

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

Svg Rendering Error #346

Closed p3rd1x closed 2 years ago

p3rd1x commented 2 years ago

I tried to use CairoSVG to render a svg image from Wikipedia to png. The rendered result is very messy. Seems like the coordinates of some points got misplaced.

This is the original picture: https://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_the_Dominican_Republic.svg

script is as simple as:

from cairosvg import svg2png
svg2png(
    url="https://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_the_Dominican_Republic.svg", 
    write_to="image.png", 
    output_height=1080
    )

This is the rendered image: image

liZe commented 2 years ago

It’s fixed on master, thanks for the report!