# Check if image an image link give an image

**URL:** <https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569>\
**Category:** Ask for Help\
**Created:** [April 14, 2024, 2:29pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569 "2024-04-14T14:29:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kriss\_Kriss06](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kriss_kriss06/32/60641_2.png) [@Kriss\_Kriss06](https://community.glideapps.com/u/Kriss_Kriss06)\
**Post date:** [April 14, 2024, 2:29pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/1 "2024-04-14T14:29:38Z")

</div>

Hello , i have a gallery with product name and photo1 photo 2 to display image’s product.  
I have an excel sheet with url link, but not all products have 2 images… so in case an image doesn’t exist, i have my colomn not empty but a “image not found”.

I’d like to know how to check if a photo is “not found”

thanks  
 ![img check1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/34ca502c52b530075ffe9736361b1cf2d7499c83.png)  
 ![img check2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/a/0aaf00154103e6a76cdafa9dfc8d3357c68a36c5.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [April 14, 2024, 2:41pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/2 "2024-04-14T14:41:02Z")

</div>

add if then else column…

If photo 2 is empty then “Warning Photo Empty” else photo 2

In the data editor double click on photo1 and photo 2 and turn them into basic text… you can see the underlying URL’s

---

<div class="post-metadata">

**Author:** ![Kriss\_Kriss06](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kriss_kriss06/32/60641_2.png) [@Kriss\_Kriss06](https://community.glideapps.com/u/Kriss_Kriss06)\
**Post date:** [April 14, 2024, 2:47pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/3 "2024-04-14T14:47:45Z")

</div>

thanks for the reply, but my columns are filleds with link so they aren’t empty.

like  
site/item1-img1.jpg for photo 1

site/item1-img2.jpg for photo 2

if the site/item1-img2.jpg don’t exist, it’s not empty !

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 14, 2024, 2:56pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/4 "2024-04-14T14:56:43Z")

</div>

So the urls are built out regardless if an image actually exists at that location or not?

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [April 14, 2024, 3:02pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/5 "2024-04-14T15:02:22Z")

</div>

You may try AI:

![Screenshot 2024-04-14 at 22.00.40](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/5/85d25044e30db35cda305536c5c7aeff7ed32be2.png)

---

<div class="post-metadata">

**Author:** ![Let\_sBrand\_Today](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/let_sbrand_today/32/73338_2.png) [@Let\_sBrand\_Today](https://community.glideapps.com/u/Let_sBrand_Today)\
**Post date:** [April 14, 2024, 3:20pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/6 "2024-04-14T15:20:51Z")

</div>

Use conditional logic or even another AI Generate text column that decides if the url is an image url. If it is then output IMG if not output the image below.

Maybe you could try making a the image with text on it that says something like NULL. Or in the image give the AI a prompt.

Then you could use conditional filtering logic on the front end to filter out that reply where there is no Image or replace the image with another image all together.

I hope that makes sense.

---

<div class="post-metadata">

**Author:** ![Kriss\_Kriss06](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kriss_kriss06/32/60641_2.png) [@Kriss\_Kriss06](https://community.glideapps.com/u/Kriss_Kriss06)\
**Post date:** [April 14, 2024, 4:34pm UTC](https://community.glideapps.com/t/check-if-image-an-image-link-give-an-image/72569/7 "2024-04-14T16:34:00Z")

</div>

thanks for your replies 🙂  
finally i changed the source : i just use a vba macro to check in my exel database if the url is a file , and if not i don’t display the url, so it will be an empty cell.

Problem solved 🙂
