after merge with remote
[erdiag.git] / scripts / getGraph_png.php
diff --git a/scripts/getGraph_png.php b/scripts/getGraph_png.php
new file mode 100644 (file)
index 0000000..2b8b11d
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+header('Content-Type: image/png');
+$dotInput = $_GET["dot"];
+passthru("printf '$dotInput' | dot -Tpng -Nfontname=Roboto -Nfontsize=14 -Efontname=Roboto -Efontsize=14");