projects
/
erdiag.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
+++ b/
scripts/getGraph_png.php
@@ -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");