We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to increase DPI of PNGs that Kroki produces?
I tried the kroki cli with the OO Graph example:
kroki
kroki convert test/oo.dot -o out.jpg
This produces a super low-res PNG:
Thanks for the amazing lib / service!
The text was updated successfully, but these errors were encountered:
Hey @devth thanks for your kind words!
You can configure the DPI using the dpi attribute in your diagram: https://graphviz.org/doc/info/attrs.html#d:dpi
dpi
graph G { graph [ dpi = 300 ]; /* The rest of your graph here. */ }
Here's an example:
It might be worth to document it... 🤔
If you want more control, I guess you could export the diagram to SVG and then post-process it to create a high-resolution png.
Sorry, something went wrong.
Awesome! Thank you. I didn't find that when googling around so it might be worth documenting.
No branches or pull requests
Is there a way to increase DPI of PNGs that Kroki produces?
I tried the
kroki
cli with the OO Graph example:This produces a super low-res PNG:
Thanks for the amazing lib / service!
The text was updated successfully, but these errors were encountered: