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 labels containing images and their locations #71

Open
esnible opened this issue Mar 23, 2023 · 0 comments
Open

HTML labels containing images and their locations #71

esnible opened this issue Mar 23, 2023 · 0 comments
Labels
question Further information is requested

Comments

@esnible
Copy link

esnible commented Mar 23, 2023

Maybe this is a documentation quest, or maybe it is an enhancement request.

I have a web server that uses goccy/go-graphviz to render several different graphs to SVG.

GraphViz.Render() needs to read the images on the HTML labels to learn their size, and also preserve the image URLs so the browser can also fetch them.

As far as I can see, GraphViz.Render() is using the current working directory and opening the file. I would like to be able to customize the way Render() looks up the images, so that the rendering isn't tied to the filesystem. I'd like to supply GraphViz with a callback for image file data and metadata retrieval. Is this currently possible?

Example

mynode [ label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./static/icons/pod-128.png" /></TD></TR><TR><TD>Pod</TD></TR></TABLE>> ]
@goccy goccy added the question Further information is requested label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants