Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML version doesn't render images #12

Open
martinmagnusson opened this issue Dec 18, 2024 · 1 comment
Open

HTML version doesn't render images #12

martinmagnusson opened this issue Dec 18, 2024 · 1 comment

Comments

@martinmagnusson
Copy link

martinmagnusson commented Dec 18, 2024

The HTML version dosen't seem to render images in nodes, neither usting a regular image node attribute or when including it in a "HTML-like" label. Is that fixable?

For example, the code below renders a graph but with no images. The file image.png is in the same directory as dynamicgraph.html.

digraph UNIT{

node1[label=<<TABLE BORDER="0"><TR><TD>this is node 1</TD><TD><IMG SRC="image.png"/></TD></TR></TABLE>>, shape=none, fillcolor=4];
node2[image="image.png"]
  subgraph cluster_graph {
    edge [color=4, penwidth=2];
    group->node1
    group->node2
  }
}
@BartBrood
Copy link
Owner

BartBrood commented Dec 19, 2024

I'm afraid this one needs to be documented as a limitation.
WASM cannot access local file systems and graphviz only supports images through local file system.
Unless anyone has any suggestions to mount a virtual Filesystem to fool the graphviz WASM to use it as a local filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants