How can I have a gif be the embed thumbnail on a topic/post

I was wondering how this can be done, I’ve seen it on other Discourse communities, was wondering how I can also do this on my local Discourse instance. I basically want it so the GIF will automatically play.

You want this Theme Component:

1 Like

Yeah I have that installed, my problem is I want the GIF to play as a post/topic thumbnail, was wondering if that’s possible?

zach dorsey GIF

This is how it works out of the box: it’s animated.

What’s the issue?

2 Likes

Like would it be possible to have a playable GIF next to the topic?

so what was missing in your description of the problem was “Topic List”. :smiley:

this might be possible but you’d need to use a Theme Component to expose the Topic’s image url.

And I believe it would only pick it up if it was in the OP.

:biohazard: This would really slow down the loading of Topic List. :biohazard:

Ahh, what theme component do you recommend?

I wouldn’t recommend doing this, because it is not scalable.

You would have to build this yourself. It’s not that hard, good learning exercise.

1 Like

Would it be hard to build?

2 Likes

There would be a learning curve to begin with but this project would be a good first project.

Read more here: Beginner's guide to developing Discourse Themes

Go for it then share your solution with the community!

1 Like