I’m using CairoSVG to convert a SVG file into a PNG image.
The position of the text seems to be off compared to the images rendered by Firefox, Safari and co. I cannot understand if the problem comes from the code, from CairoSVG or from the SVG file.
Here is the URL of the SVG file: https://upload.wikimedia.org/wikipedia/commons/7/7d/Roll_pitch_yaw_mnemonic.svg
Here is the image generated using CairoSVG:
Here is the Python code I’m using:
import cairosvg
URL = "https://upload.wikimedia.org/wikipedia/commons/7/7d/Roll_pitch_yaw_mnemonic.svg"
cairosvg.svg2png(url=URL, write_to="output.png")
Did I miss something or is it a known issue?
If so, is there a better lib than CairoSVG?