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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -