How do I set the resolution when converting dot files (graphviz) to images? March 19, 2023 by Tarik Use the dpi attribute. Example: graph G { graph [ dpi = 300 ]; /* The rest of your graph here. */ }