Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baseunit ignored in disvg when viewbox parameter is provided #215

Open
maria-korosteleva opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@maria-korosteleva
Copy link

I'm trying to save my list of paths to svg using 'cm' as units. I call disvg with viewport and baseunit parameters set (but not dimentions). The baseunit value is ignored and svg is created in px instead of cm.

It seems like the bug is in this expression, which needs to include baseunit parameter into the dimensions definition:

dimensions = viewbox.split(' ')[2:4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant