Skip to content

Commit 0363bf1

Browse files
author
Mark Robinson
committed
Graphviz DPI fix for svg viewbox
1 parent 74a94d3 commit 0363bf1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/commonwl/viewer/web/WorkflowController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ public FileSystemResource getGraphAsSvg(@Value("${graphvizStorage}") String grap
218218
File out = new File(graphvizStorage + "/" + workflowID + ".svg");
219219
if (!out.exists()) {
220220
GraphViz gv = new GraphViz();
221+
gv.decreaseDpi();
222+
gv.decreaseDpi();
223+
gv.decreaseDpi();
221224
gv.writeGraphToFile(gv.getGraph(workflowModel.getDotGraph(), "svg", "dot"), out.getAbsolutePath());
222225
}
223226

0 commit comments

Comments
 (0)