Skip to content

Added option to set the dpi of the output - #379

Open
tobiasfalk wants to merge 2 commits into
wireviz:devfrom
tobiasfalk:output_dpi
Open

Added option to set the dpi of the output#379
tobiasfalk wants to merge 2 commits into
wireviz:devfrom
tobiasfalk:output_dpi

Conversation

@tobiasfalk

Copy link
Copy Markdown

This adds the option 'output_dpi' for the user. This is used to set the 'dpi' of the output, the default is 96 which is also the default GraphViz default. https://graphviz.org/docs/attrs/dpi/

This comes from my annoyance that the text is kind of pixelated with 96dpi and having the option for higher res pictures is nice

this adds the option 'output_dpi' for the user. This is used to set the 'dpi' of the output, the default is 96 wich is also the default GraphViz default.
https://graphviz.org/docs/attrs/dpi/
@tobiasfalk

Copy link
Copy Markdown
Author

@kvid, since someone asked about it, what about merging this?

@kvid

kvid commented Sep 29, 2025

Copy link
Copy Markdown
Collaborator

@kvid, since someone asked about it, what about merging this?

Personally, I would consider a solution that also allows overriding some other global parameters, e.g. something like this:

options:
  graph:
    dpi: 600
    ranksep: 4
    ... etc.

However, I've not tested this, so please argue against me and explain why my idea should not be implemented.

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

Successfully merging this pull request may close these issues.

2 participants