Graphviz: Image not getting imported in SVG Mode

Posted by siddjain on
URL: https://discuss.asciidoctor.org/Graphviz-Image-not-getting-imported-in-SVG-Mode-tp8283.html

Hello I am trying to use a graphviz diagram in asciidoc in SVG mode. I try to import an image but it does not get imported and rendered in the PDF. The image does get imported if I drop the SVG from the code below and change it to a PNG file. How can I fix this please?

[graphviz, "myimage", svg] // if I drop the svg it works provided.i change the user.svg image to png as well
....
digraph G {    
    size="4,4";
    node [shape=box, fontname=arial];
    layout=dot;
    splines=ortho;
    rankdir=LR;
    user [shape=none, label="", image="user.svg"]; // image does not get imported. there is no error either
}
....