# Fallback Image Path

**URL:** <https://forum.inductiveautomation.com/t/fallback-image-path/108577>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 16, 2025, 8:18pm UTC](https://forum.inductiveautomation.com/t/fallback-image-path/108577 "2025-07-16T20:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Patterson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/daniel_patterson/32/85894_2.png) [@Daniel\_Patterson](https://forum.inductiveautomation.com/u/Daniel_Patterson)\
**Post date:** [July 16, 2025, 8:18pm UTC](https://forum.inductiveautomation.com/t/fallback-image-path/108577/1 "2025-07-16T20:18:52Z")

</div>

I am wondering if there is a simple method to set a fallback image if the path does not return an image from image manager. If I could view the image bytes that would be sufficient information, or if there was something like system.file.fileExists but for the image manager. I understand that these images are in the internal database and not at a file path.

for example, if I dynamically set the image path like this `/system/images/Pictures/Wheels/{scanData}.png`  
I need a fallback image for that path.

Or is the actual method to just store my images as BLOBs in my own DB?

---

<div class="post-metadata">

**Author:** ![fakcior](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@fakcior](https://forum.inductiveautomation.com/u/fakcior)\
**Post date:** [July 17, 2025, 7:40am UTC](https://forum.inductiveautomation.com/t/fallback-image-path/108577/2 "2025-07-17T07:40:09Z")

</div>

You can use this script transform to find if the image with given name exists:

```python
def transform(self, value, quality, timestamp):
	from com.inductiveautomation.ignition.gateway import IgnitionGateway
	from com.inductiveautomation.ignition.gateway.images import ImageRecord
	
	imageManager = IgnitionGateway.get().getImageManager()
	return value in [image.getString(ImageRecord.Path) for image in imageManager.getImages('')]

```

Or you can use this 3rd party module:  
[Automation Professionals’ Blob Server Module](https://forum.inductiveautomation.com/t/automation-professionals-blob-server-module/57970)
