-
Notifications
You must be signed in to change notification settings - Fork 824
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
Add a configuration directive for custom DPI to be used when converting SVG to PNG #674
Comments
What is it supposed to do? |
DPI = ratio between 1in and 1px, see help text of the cairosvg command line:
|
So would this only apply to SVGs that have their size unit set to 'in' or 'cm'? |
Yes, indeed.
Problem is that those which come in units other than pixels tend to look like crap if you render them with 96 DPI (which is the CairoSVG default). |
@znerol Can you make a PR ? |
CairoSVG allows to specify the DPI value when converting SVG to PNG. Let's introduce a configuration directive in order to allow users to control this value.
The text was updated successfully, but these errors were encountered: