My goal is to create custom shapes for a storyboard that will export to a csv file for further manipulation. I have not found out-of -the-box shapes that will export image data, so I’m trying to create a custom shape that will.
I also need the images to be visible in shapes within lucidchart ,and easily input from files not urls.
My attempts with the following code have failed to show images in a shape at instantiation and with data input.
Is it possible to reach my goal? If so, what can be altered in this to make it work?
{
"properties": [
{
"name": "ImageName",
"default": "clockwise-one-arrow.png",
"label": "Image name",
"type": "file"
}
],
"images": {
"logo": {
"type": "file",
"path": "{{=@ImageName}}"
}
},
"style": {
"fill": {
"type": "image",
"ref": "logo"
}
},
"geometry": [
{
"type": "rect"
}
]
}
Image name as property with name in exported csv

Best answer by alec.bingham
I’m not sure I understand all the specifics of what you are hoping for in your flow, but let me refer you to a similar question I helped field a couple weeks ago found here.
With what I understand about your use case (which may not be correct, forgive me if I misunderstand), the biggest problem you might run into is defining additional images. Our Custom Shape code will require you to define all the images in the actual shape definition if you are trying to access them from your local machine. However, if you follow the route described in the community thread I linked, you should see a way to dynamically alter the image background of a custom shape (although this will require that your image can be found through a URL, and not just a local upload).
I hope this helps! If not, a more detailed explanation of your desired use case/workflow might help me find any other available workarounds.
Reply
Create an account in the community
A Lucid account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
Log in to the community
A Lucid account is required to interact with the Community, and your participation is subject to the Supplemental Lucid Community Terms. You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
Log in with Lucid
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.