# Dynamic Image path

**URL:** <https://forum.inductiveautomation.com/t/dynamic-image-path/57869>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 31, 2022, 1:55pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869 "2022-03-31T13:55:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [March 31, 2022, 1:55pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869/1 "2022-03-31T13:55:16Z")

</div>

Hello Everyone,  
I am using Image component and I have tag name fault, Whenever I see 1 in fault I would show red cross image otherwise green checkmark image. I need to change image path in Image component, I want to bind image path to tag(fault) but I don’t wont it to take a value of tag just want to check and move string in path. How do I achieve this? I am pretty sure I need to use expression in binding but not sure how to do it. I am using Vision module.  
Thank you for your time.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 31, 2022, 2:09pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869/2 "2022-03-31T14:09:31Z")

</div>

Add an expression binding to the Image Path property of the component:

```auto
if({[your provider]path/to/fault/tag},'path/to/image/when/faulted','path/to/image/when/not/faulted')

```

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [March 31, 2022, 2:11pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869/3 "2022-03-31T14:11:50Z")

</div>

Great.Thank you. That’s what I wanted.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 31, 2022, 2:12pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869/4 "2022-03-31T14:12:26Z")

</div>

Are there map transform in vision ?  
If there are, you can also do this:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96d96e4a135248a87280c9f3993a6a1c6d11afab.png)

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 31, 2022, 2:26pm UTC](https://forum.inductiveautomation.com/t/dynamic-image-path/57869/5 "2022-03-31T14:26:02Z")

</div>

No map transform in vision,maybe the closest thing to it is a style customization?  
In this case, you could bind a custom property to the fault tag and then use it to drive the style of the component. The expression binding is much easier in this case.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b45e9a829e7570011b1151ce50bbd61b6710f812.png)
