# Comment puis-je avoir un gif comme miniature d'incorporation sur un sujet/post

**URL:** https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321
**Category:** Development
**Created:** [Avril 19, 2023, 7:39 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321 "2023-04-19T19:39:21Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![N3DSDude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/n3dsdude/32/303385_2.png) [@N3DSDude](https://meta.discourse.org/u/N3DSDude)
#### Post date: [Avril 19, 2023, 7:39 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/1 "2023-04-19T19:39:21Z")

</div>

Je me demandais comment cela pouvait être fait, je l’ai vu sur d’autres communautés Discourse, je me demandais comment je pouvais aussi faire cela sur mon instance Discourse locale. Je veux essentiellement que le GIF se lance automatiquement.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Avril 19, 2023, 7:46 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/2 "2023-04-19T19:46:36Z")

</div>

Vous voulez ce composant de thème :

> [@Discourse Gifs](https://meta.discourse.org/t/discourse-gifs/158738):
>
> discourse2Summary Discourse Gifs adds a button to the composer that allows you to search for gifs and easily add the best one to your post.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-gifs](https://github.com/discourse/discourse-gifs)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features After searching you get an infinite scrolling wall of related gifs: [recording] Clicking one one inserts it on your current…

---

<div class="post-metadata">

### Author: ![N3DSDude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/n3dsdude/32/303385_2.png) [@N3DSDude](https://meta.discourse.org/u/N3DSDude)
#### Post date: [Avril 19, 2023, 7:53 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/3 "2023-04-19T19:53:40Z")

</div>

Oui, je l’ai installé, mon problème est que je veux que le GIF soit lu comme miniature de publication/sujet, je me demandais si c’était possible ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Avril 19, 2023, 8:18 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/4 "2023-04-19T20:18:07Z")

</div>

![zach dorsey GIF](https://media3.giphy.com/media/k5lj4s1qxaSyI/giphy.webp?cid=04a688a20wf9twmind2pd9ewznearqqht043la431ei57ayt&rid=giphy.webp&ct=g)

Voici comment cela fonctionne dès la sortie de la boîte : c’est animé.

Quel est le problème ?

---

<div class="post-metadata">

### Author: ![N3DSDude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/n3dsdude/32/303385_2.png) [@N3DSDude](https://meta.discourse.org/u/N3DSDude)
#### Post date: [Avril 19, 2023, 8:35 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/5 "2023-04-19T20:35:09Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/b/7/8/b7812199a1899566d111e26096f408895813e931.png)

Serait-il possible d’avoir un GIF jouable à côté du sujet ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Avril 19, 2023, 8:39 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/6 "2023-04-19T20:39:01Z")

</div>

Ce qui manquait dans votre description du problème, c’était la « Liste des sujets ». 😃

Ce serait peut-être possible, mais vous devriez utiliser un composant de thème pour exposer l’URL de l’image du sujet.

Et je crois que cela ne serait pris en compte que si c’était dans le message d’origine.

☣ Cela ralentirait vraiment le chargement de la liste des sujets. ☣

---

<div class="post-metadata">

### Author: ![N3DSDude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/n3dsdude/32/303385_2.png) [@N3DSDude](https://meta.discourse.org/u/N3DSDude)
#### Post date: [Avril 19, 2023, 8:43 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/7 "2023-04-19T20:43:21Z")

</div>

Ah, quel composant de thème recommandez-vous ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Avril 19, 2023, 8:44 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/8 "2023-04-19T20:44:45Z")

</div>

Je ne recommanderais pas de faire cela, car ce n’est pas évolutif.

Vous devriez construire cela vous-même. Ce n’est pas si difficile, c’est un bon exercice d’apprentissage.

---

<div class="post-metadata">

### Author: ![N3DSDude](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/n3dsdude/32/303385_2.png) [@N3DSDude](https://meta.discourse.org/u/N3DSDude)
#### Post date: [Avril 19, 2023, 11:26 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/9 "2023-04-19T23:26:44Z")

</div>

Ce serait difficile à construire ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [Avril 20, 2023, 11:18 UTC](https://meta.discourse.org/t/how-can-i-have-a-gif-be-the-embed-thumbnail-on-a-topic-post/262321/10 "2023-04-20T11:18:50Z")

</div>

Il y aurait une courbe d’apprentissage au début, mais ce projet serait un bon premier projet.

En savoir plus ici : [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648?u=merefield)

Lancez-vous, puis partagez votre solution avec la communauté !
