# Automatically Add Thumbnail to Row if no picture

**URL:** <https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883>\
**Category:** Ask for Help\
**Created:** [January 30, 2022, 3:22am UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883 "2022-01-30T03:22:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hack\_gibson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hack_gibson/32/38296_2.png) [@hack\_gibson](https://community.glideapps.com/u/hack_gibson)\
**Post date:** [January 30, 2022, 3:22am UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883/1 "2022-01-30T03:22:40Z")

</div>

Hi there -

New Glide builder here.

I’m creating a user’s table and want Glide to automatically add a thumbnail for a user if the user doesn’t add a photo for themselves.

How can I have that happen?

---

<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:** [January 30, 2022, 4:01am UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883/2 "2022-01-30T04:01:44Z")

</div>

I would have an image column to hold an image if a user chooses to upload one. Then I would create an IF column that checks if that image column is empty. If it is empty, then return the URL of a default image. Else return the value from the image column. Then wherever you want to display that image, use the value in the IF column.

---

<div class="post-metadata">

**Author:** ![Luther](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/luther/32/17929_2.png) [@Luther](https://community.glideapps.com/u/Luther)\
**Post date:** [January 30, 2022, 5:36am UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883/3 "2022-01-30T05:36:11Z")

</div>

In addition to what Jeff said above.  
I normally have 3 columns for this.

1. The Image column

2. The Gen Image column (This is the column that generates an image based on an input, your input can be the ROWID or the name of the person you want to add the image

3. “IF IMAGE Empty” column. This is an “IF THEN ELSE” column.

> > IF column “Image” is empty  
> > THEN column “Gen Image”  
> > ELSE “Image” column

In the front side of your App (UI) where you want to show the image of the person then you will use the “IF IMAGE Empty” column as your “feed” to that image component that you have added.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [January 30, 2022, 1:48pm UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883/4 "2022-01-30T13:48:13Z")

</div>

Glide also has a new plug-in column called Email to Photo with attempts to find the users Gravatar.

…of course this assumes that the user has a Gravatar…

> **[Email to Photo column • Glide](https://www.glideapps.com/plugins/gravatar)**
>
> Uses gravatar.com to find a person's photo given their email address.

---

<div class="post-metadata">

**Author:** ![hack\_gibson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hack_gibson/32/38296_2.png) [@hack\_gibson](https://community.glideapps.com/u/hack_gibson)\
**Post date:** [January 30, 2022, 3:12pm UTC](https://community.glideapps.com/t/automatically-add-thumbnail-to-row-if-no-picture/37883/5 "2022-01-30T15:12:44Z")

</div>

Thank you all! Super helpful!
