I am having problem including image in node in graphviz. I tried both including image in node via image="name.svg"
and via <IMG SRC="name.svg" />
in HTML-like label. I also tried using different image formats (svg, jpg, png), but when exporting I always get message:
Warning: No such file or directory while opening name.svg
Warning: No or improper image="name.svg" for node "somenode"
.dot file looks like:
digraph {
node1[image="image.svg", label=""]
node2[ label=
<A
<IMG SRC="image.svg" />> ]
node1 -> node2 }
image.svg is located in same directory as .dot file (output of ls -la
):
total 96
drwxrwxr-x 2 filip filip 4096 maj 8 07:55 .
drwxr-xr-x 34 filip filip 4096 maj 8 07:56 ..
-rw-rw-r-- 1 filip filip 85030 maj 7 17:05 image.svg
-rw-rw-r-- 1 filip filip 117 maj 8 07:54 mygraph.dot
My OS is Ubuntu 20.04.3 LTS.
I have already looked at many other questions regarding this problem, but none of the solutions given seem to help.
Any suggestions?