Hi James,
Base64 images are supported in the graph browser in the following ways:
Advanced lens: you can configure a base64 image selecting URL and configuring the expression like this: 'data:image/png;base64,' + payload["image_field"]
You can set it directly in the datamodel. Go to your entity page and set up a scripted image with the following expression data:image/png;base64,@doc[_source][image_field]@
In general, I would consider using an external image server (or the built-in image proxy to access available images on other domains). Having base64 images stored as part of the documents will increase the data stored as part of the saved graph. If you were to retrieve images dynamically via a URL, you would end up with lighter saved graphs.
I have stored my images on a separate server, and the image URLs (along with other related data) are saved in a separate Elasticsearch index.
I created an entity table and defined entity identifiers for relations . When I load the graph, the table and nodes(Entity Identifiers) are displayed correctly. However, I want to display the images on the entity identifiers in the graph nodes by referencing the image URL field using something like:
payload[‘image’]
But it’s not working as expected. How can I correctly configure this so that the image appears on the Entity identifier? when i specifiy path in url it displays icons on entity identifier to on node images but when i render from Elasticsearch payload[“image”] it doesnot display @FabioTacchelli
I have stored my images on a separate server, and the image URLs (along with other related data) are saved in a separate Elasticsearch index.
I created an entity table and defined entity identifiers. When I load the graph, the table and nodes are displayed correctly. However, I want to display the images on the entity identifiers in the graph nodes by referencing the image URL field using something like:
payload['image']
because i m using aggregated relations using entity identifiers
But it’s not working as expected. How can I correctly configure this so that the image appears on the node identifier?
Entity identifiers are pure values that may come from multiple documents.
To display a custom image coming from one of the connected documents, you would need to create a custom lens that gets the image URL from a connected node and adds it to the EID node.
Alternatively, you would have to query the index to retrieve the image URL of the connected documents
I’ve developed a new script intended to function as a custom lens for displaying entity-related images on the graph. However, I’m currently unable to get new lens script within the ‘Lens’ options in the graph browser. I’m actively troubleshooting why it’s not appearing in the available selections
Hello James,
you’ll need to add your script to the graph browser configuration. You can go there by clicking edit on the top right of the dashboard and then the pencil on the graph browser visualization.