WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

Added option to set the dpi of the output

Open tobiasfalk opened this issue 1 year ago • 2 comments

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

tobiasfalk avatar Jun 08 '24 16:06 tobiasfalk

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

tobiasfalk avatar Sep 28 '25 13:09 tobiasfalk

@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.

kvid avatar Sep 29 '25 01:09 kvid