svg - How to print inkscape exported file to standard output and read from standard input -
i use inkscape generate custom google markers application i'm creating. since google maps don't support svg files directly, i'm planning change parameters inside svg file then, redirect file inkscape , print exported png standard output, cgi script can use sending results browser display.
do have suggestions on how achieve that?
in unix/linux environment, can use pseudofiles /dev/stdin
, /dev/stderr
achieve this, e.g. bash shell:
cat file.svg | awk -f script.awk | inkscape /dev/stdin -e /dev/stderr 2> file.png
note inkscape sends text output /dev/stdout
(which weird choice), hence have use stderr
not image mixed text.
Comments
Post a Comment