[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