[graphviz-interest] Support data: URI for embedded images

Ryan Schmidt <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
Would it be reasonable to support the data: URI for images in Graphviz?

In modern web browsers, you can use a data: URI to include an image inline and avoid the extra HTTP request, e.g.:

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==">

This is described further here:

http://en.wikipedia.org/wiki/Data_URI_scheme

It would be neat if the same could be done in Graphviz, e.g.:

graph {
  a [image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="]
}

Sometimes it's more convenient to be able to describe everything about the graph, including its images, in a single file.

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.