# Image Doesn't Exist - Vision Image Component

**URL:** <https://forum.inductiveautomation.com/t/image-doesnt-exist-vision-image-component/27600>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 20, 2019, 4:41pm UTC](https://forum.inductiveautomation.com/t/image-doesnt-exist-vision-image-component/27600 "2019-08-20T16:41:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [August 20, 2019, 4:41pm UTC](https://forum.inductiveautomation.com/t/image-doesnt-exist-vision-image-component/27600/1 "2019-08-20T16:41:11Z")

</div>

Is there an easy way to code a fallback image to display if the image path for an image component doesn’t exist? I have a case where I’m putting in an image component and the path is set based on what a PLC tag says. If the PLC has a value I don’t, I’d like to just have an generic ‘Image not found’ picture appear instead of the small error icon that it typically shows in an error scenario.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [August 20, 2019, 5:12pm UTC](https://forum.inductiveautomation.com/t/image-doesnt-exist-vision-image-component/27600/2 "2019-08-20T17:12:08Z")

</div>

Not sure if its the best route, but I ended up putting in a try,except block around my script to resize the image. If it fails then it just changes the property to the error image path I want instead.
