Hi,
Is there any way in graphviz to set the resolutions of the output png image?
As an example, I have the following diagram and I want to produce a 1500x1200 image. I have a post-processing code that resizes the image, but the resulting output has problems with the text being distorted.
Thanks!
[dot verbose=true delay=1000 duration=2000 width=800]
digraph MicrosoftAD {
graph [bb="0,0,3729,872",
compound=true,
fontcolor="#71797E",
fontname="Segoe UI",
fontsize=32,
imagepath="C:\Users\jocolon\Documents\WindowsPowerShell\Modules\Diagrammer.Microsoft.AD\icons",
labelloc=t,
nodesep=0.6,
overlap=true,
pad=1,
penwidth=1.5,
rankdir=TB,
ranksep=0.75,
ratio=auto,
splines=spline,
style=dashed
];
node [color="#003099",
fillcolor="#99ceff",
fontname="Segoe UI",
fontsize=14,
imagescale=True,
label="\N",
labelloc=t,
penwidth=3,
shape=ellipse,
style=filled
];
edge [arrowsize=1,
arrowtail=dot,
color="#71797E",
dir=both,
penwidth=1.5,
style=dashed
];
subgraph clusterOUTERDRAWBOARD1 {
graph [bb="8,8,3721,864",
color=red,
fontsize=24,
label=<<TABLE STYLE="ROUNDED" COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD fixedsize="true" width="80" height="80" ALIGN="center" colspan="1" rowspan="4">Logo</TD></TR><TR><TD valign="top" align="left" colspan="2"><B><FONT POINT-SIZE="14">Author: Jonathan Colon</FONT></B></TD></TR><TR><TD valign="top" align="left" colspan="2"><B><FONT POINT-SIZE="14">Company: Zen Pr Solutions</FONT></B></TD></TR></TABLE>>,
labeljust=r,
labelloc=b,
lheight=1.28,
lp="3571,58",
lwidth=3.94,
penwidth=1.5,
style=dashed
];
subgraph clusterMainGraph {
graph [bb="16,116,3713,856",
fontsize=22,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Microsoft Logo</TD></TR><TR><TD bgcolor='#FFCCCC' ALIGN='center'>Active Directory Site Inventory</TD></TR><TR><TD ALIGN='center'><font color='red'>Debug ON</font></TD></TR></TABLE>>,
labeljust=c,
labelloc=t,
lheight=3.19,
lp="1864.5,737",
lwidth=4.84,
penwidth=0
];
subgraph clusterForestSubGraph {
graph [bb="24,124,3705,610",
color=red,
fontsize=24,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>PHARMAX.LOCAL</TD></TR></TABLE>>,
labelloc=t,
lheight=1.30,
lp="1864.5,559.12",
lwidth=6.28,
penwidth=1.5,
style=dashed
];
subgraph clusterMainSubGraph {
graph [bb="32,132,3697,500.25",
color=red,
fontsize=24,
label=" ",
labelloc=t,
lheight=0.47,
lp="1864.5,479.38",
lwidth=0.09,
penwidth=1.5,
style=dashed
];
subgraph clusterSitesTopology {
graph [bb="40,140,3689,450.5",
fontsize=22,
label=Sites,
labelloc=t,
lheight=0.42,
lp="1864.5,431.5",
lwidth=0.61,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterPharmaxHQ {
graph [bb="48,148,773,404.5",
fontsize=20,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Pharmax-HQ</TD></TR></TABLE>>,
labelloc=t,
lheight=1.22,
lp="410.5,356.62",
lwidth=4.88,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterPharmaxHQDC {
graph [bb="56,156,449,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Domain Controllers</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="252.5,254.75",
lwidth=5.24,
penwidth=1.5,
style="dashed,rounded"
];
PharmaxHQDCs [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD PORT="EdgeDot" ALIGN="Center" colspan="1"><FONT POINT-SIZE="14">SERVER-DC-01V</FONT></TD><TD PORT="EdgeDot" ALIGN="Center" colspan="1"><FONT POINT-SIZE="14">SERVER-DC-02V</FONT></TD></TR></TABLE>>,
pos="243,182.38",
shape=plain,
width=3.2986];
}
subgraph clusterPharmaxHQSN {
graph [bb="457,156,765,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Subnets</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="611,254.75",
lwidth=3.98,
penwidth=1.5,
style="dashed,rounded"
];
PharmaxHQSubNets [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD align="Center" colspan="1"><FONT POINT-SIZE="14">192.168.7.0/24</FONT></TD><TD align="Center" colspan="1"><FONT POINT-SIZE="14">192.168.5.0/24</FONT></TD><TD align="Center" colspan="1"><FONT POINT-SIZE="14">10.9.1.0/24</FONT></TD></TR></TABLE>>,
pos="611,182.38",
shape=plain,
width=4.0451];
}
}
subgraph clusterCayeyBranch {
graph [bb="781,148,1500,404.5",
fontsize=20,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Cayey-Branch</TD></TR></TABLE>>,
labelloc=t,
lheight=1.22,
lp="1140.5,356.62",
lwidth=4.98,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterCayeyBranchDC {
graph [bb="789,156,1182,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Domain Controllers</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="985.5,254.75",
lwidth=5.24,
penwidth=1.5,
style="dashed,rounded"
];
CayeyBranchDCs [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD PORT="EdgeDot" ALIGN="Center" colspan="1"><FONT POINT-SIZE="14">CAYEY-DC-01V</FONT></TD></TR></TABLE>>,
pos="977,182.38",
shape=plain,
width=1.5938];
}
subgraph clusterCayeyBranchSN {
graph [bb="1190,156.38,1492,300.38",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Subnets</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="1341,254.38",
lwidth=3.98,
penwidth=1.5,
style="dashed,rounded"
];
DummyCayeyBranchNoSiteSN [fillcolor=transparent,
height=0.5,
label="No Site Subnets",
labelloc=c,
penwidth=0,
pos="1340,182.38",
shape=rectangle,
width=1.6076];
}
}
subgraph clusterACAD {
graph [bb="1508,148,2227,404.5",
fontsize=20,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>ACAD</TD></TR></TABLE>>,
labelloc=t,
lheight=1.22,
lp="1867.5,356.62",
lwidth=4.02,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterACADDC {
graph [bb="1516,156,1909,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Domain Controllers</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="1712.5,254.75",
lwidth=5.24,
penwidth=1.5,
style="dashed,rounded"
];
ACADDCs [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD PORT="EdgeDot" ALIGN="Center" colspan="1"><FONT POINT-SIZE="14">ACADE-DC-01V</FONT></TD></TR></TABLE>>,
pos="1703,182.38",
shape=plain,
width=1.625];
}
subgraph clusterACADSN {
graph [bb="1917,156,2219,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Subnets</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="2068,254.75",
lwidth=3.98,
penwidth=1.5,
style="dashed,rounded"
];
ACADSubNets [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD align="Center" colspan="1"><FONT POINT-SIZE="14">172.23.4.0/24</FONT></TD></TR></TABLE>>,
pos="2066,182.38",
shape=plain,
width=1.3854];
}
}
subgraph clusterDeadSite {
graph [bb="2235,148.38,2954,404.12",
fontsize=20,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Dead-Site</TD></TR></TABLE>>,
labelloc=t,
lheight=1.22,
lp="2594.5,356.25",
lwidth=4.52,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterDeadSiteDC {
graph [bb="2243,156.38,2636,300.38",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Domain Controllers</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="2439.5,254.38",
lwidth=5.24,
penwidth=1.5,
style="dashed,
rounded"
];
DummyDeadSiteNoSiteDC [fillcolor=transparent,
height=0.5,
label="No Site Domain Controllers",
labelloc=c,
penwidth=0,
pos="2430,182.38",
shape=rectangle,
width=2.6181];
}
subgraph clusterDeadSiteSN {
graph [bb="2644,156.38,2946,300.38",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Subnets</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="2795,254.38",
lwidth=3.98,
penwidth=1.5,
style="dashed,rounded"
];
DummyDeadSiteNoSiteSN [fillcolor=transparent,
height=0.5,
label="No Site Subnets",
labelloc=c,
penwidth=0,
pos="2793,182.38",
shape=rectangle,
width=1.6076];
}
}
subgraph clusterUIA {
graph [bb="2962,148,3681,404.5",
fontsize=20,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>UIA</TD></TR></TABLE>>,
labelloc=t,
lheight=1.22,
lp="3321.5,356.62",
lwidth=3.74,
penwidth=1.5,
style="dashed,rounded"
];
subgraph clusterUIADC {
graph [bb="2970,156,3363,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Domain Controllers</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="3166.5,254.75",
lwidth=5.24,
penwidth=1.5,
style="dashed,rounded"
];
UIADCs [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD PORT="EdgeDot" ALIGN="Center" colspan="1"><FONT POINT-SIZE="14">DC-UIA-01V</FONT></TD></TR></TABLE>>,
pos="3157,182.38",
shape=plain,
width=1.3229];
}
subgraph clusterUIASN {
graph [bb="3371,156,3673,300.75",
fontsize=18,
label=<<TABLE border='0' cellborder='0' cellspacing='20' cellpadding='10'><TR><TD bgcolor='#FFCCCC' ALIGN='center' colspan='1'>Subgraph Logo</TD><TD bgcolor='#FFCCCC' ALIGN='center'>Subnets</TD></TR></TABLE>>,
labelloc=t,
lheight=1.17,
lp="3522,254.75",
lwidth=3.98,
penwidth=1.5,
style="dashed,rounded"
];
UIASubNets [fillcolor=transparent,
height=0.51042,
label=<<TABLE COLOR="red" border="1" cellborder="1" cellpadding="5"><TR><TD align="Center" colspan="1"><FONT POINT-SIZE="14">172.23.7.0/24</FONT></TD></TR></TABLE>>,
pos="3522,182.38",
shape=plain,
width=1.3854];
}
}
}
}
}
}
}
}
[/dot]