You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an svg file with attributes
width="1929" height="2572"
which I created as a bytestring or as a file
cairosvg.svg2pdf(svgstr, write_to="svg_0.pdf")
svg_0.pdf comes out with 'width': 1446.75, 'height': 1929
I looked thru the code and I noticed that the svg2pdf(dpi=96) default, cairosvg UNITS['pt'] will scale to 72dpi.
If my svg has no mention of dpi, or units, why should it be assumed that one wishes to scale ?
fix to the unit assumption is to just pass dpi=72
The text was updated successfully, but these errors were encountered:
I have an svg file with attributes
width="1929" height="2572"
which I created as a bytestring or as a file
cairosvg.svg2pdf(svgstr, write_to="svg_0.pdf")
svg_0.pdf comes out with 'width': 1446.75, 'height': 1929
I looked thru the code and I noticed that the svg2pdf(dpi=96) default, cairosvg UNITS['pt'] will scale to 72dpi.
If my svg has no mention of dpi, or units, why should it be assumed that one wishes to scale ?
fix to the unit assumption is to just pass dpi=72
The text was updated successfully, but these errors were encountered: