Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.


How to specify a file name for a label icon in a GraphML file?

0 votes

I use a XSL file to generate a GraphML file and I would like to put my own pictures like icon label.

The path to the files are already stored in the original XML File.

If it's possible, how to do?
in Help by

1 Answer

0 votes
yEd does not use file paths but expects Base64 encoded image data in PNG format.

I suggest creating a sample diagram with a single image node or image icon label, saving the diagram, and inspecting the resulting GraphML file to understand what needs to be done.

As far as I know, it is not possible to generate the required image data from a file path using XSL(T) alone.
by [yWorks] (160k points)
Thank you very much.

I was affraid it was not possible, indeed.
The best I can do for now is to store the path in a <data>. It could be useful in case of the use of another viewer.
Well, if you need the icons in labels and put your file paths/URLs in <data> elements that are imported as custom properties, then you could use yEd's properties mapper to batch-import the referenced images as label icons.
It appears that label icons property cannot be mapped. Am I missing something?


Am I missing something?

Probably. Hard to tell given the information at hand. What verson of yEd are you using? What did you do exactly? How did you specify the file paths/URLs for the label icons? What does you properties mapper configuration look like? Please consider uploading a sample GraphML with your custom properties and your properties mapper configuration here. Otherwise it is very difficult to understand your problem.

I was using 3.15 version, and now with 3.16 it's better ;)

Thank you very much for your time.
Legal Disclosure | Privacy Policy