# Need help: Is there a way to get thumbnail of image uploaded into Glide?

**URL:** <https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956>\
**Category:** Ask for Help\
**Created:** [July 17, 2024, 7:02am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956 "2024-07-17T07:02:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [July 17, 2024, 7:02am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/1 "2024-07-17T07:02:47Z")

</div>

Hi Guys,

I am uploading an amigo/video into glide storage , Is there a way I can get thumbnail of the image/video I uploaded?

Thank you in advance for your help.

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2024, 9:53am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/2 "2024-07-17T09:53:21Z")

</div>

Here you go.

> [@Video : thumbnail](https://community.glideapps.com/t/video-thumbnail/31232/55):
>
> Replit changed their pricing structure a few days ago, so a lot of these code repositories that were hosted for free were shut down. I had used @Manu.n’s code when he initially created it, but I didn’t want to rely on someone else maintaining it for the exact case that it may disappear at some point, so I made a copy of the code for myself. If you simply put this in a javascript column, and pass the url in the p1 parameter and a 1 for the p2 parameter, it will do the exact same thing. It does…

---

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [July 17, 2024, 10:26am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/3 "2024-07-17T10:26:11Z")

</div>

Thank you for your reply @ThinhDinh I can see lot of references of Youtube in it. Can I directly copy paste the code as it is?

Its giving me this error when I do it.

In P1 I am passing the URL of the content.

 ![Screenshot 2024-07-17 at 3.55.43 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/b/9ba1d7b080bf9575fb8b6171948b64760bcc55c5.png)

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![Dilon\_Perera](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilon_perera/32/85652_2.png) [@Dilon\_Perera](https://community.glideapps.com/u/Dilon_Perera)\
**Post date:** [July 17, 2024, 10:56am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/4 "2024-07-17T10:56:46Z")

</div>

Add the video url and start time to the p1 and p2 sections. :

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/9/69b812160bc9f984d17bbfd6d7f2b9cbfe42d7af.png)

---

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [July 17, 2024, 11:08am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/5 "2024-07-17T11:08:04Z")

</div>

Thank you. @Dilon_Perera I did it and I got it successfully

Had a question for you and @ThinhDinh how do we get image thumbnail?

Should I just display the image in thumbnail section if its an image as alternative?

How do I know wether uploaded image is video or image?

Regard,  
Dilip

---

<div class="post-metadata">

**Author:** ![Dilip\_Adiga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dilip_adiga/32/60330_2.png) [@Dilip\_Adiga](https://community.glideapps.com/u/Dilip_Adiga)\
**Post date:** [July 17, 2024, 11:27am UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/6 "2024-07-17T11:27:19Z")

</div>

Thank you guys, @ThinhDinh@Dilon_Perera . Got it to work.

Followed the solution in the link and used the logic of seeing wether extension is .mp4

If it is then I am classifying it as video else image

Let me know if it is ok

Regards,  
Dilip

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2024, 12:49pm UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/7 "2024-07-17T12:49:07Z")

</div>

That sounds correct to me.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [July 24, 2024, 12:49pm UTC](https://community.glideapps.com/t/need-help-is-there-a-way-to-get-thumbnail-of-image-uploaded-into-glide/74956/8 "2024-07-24T12:49:12Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
