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

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

Here you go.

2 Likes

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.

Regards,
Dilip

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

image

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

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

That sounds correct to me.

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