# 用户卡片中的动态 GIF

**URL:** <https://meta.discourse.org/t/animated-gifs-in-user-cards/187686>\
**Category:** Support\
**Created:** [2021年四月21日 22:48 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686 "2021-04-21T22:48:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月21日 22:48 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/1 "2021-04-21T22:48:46Z")

</div>

你好，

我刚才查看了我的网站，发现无法在用户卡片中添加 GIF。我尝试了多种方法，但目前都没有奏效。上传 GIF 后，它显示为静态图片。请问该如何解决？

谢谢，  
Adrian

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2021年四月22日 07:07 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/2 "2021-04-22T07:07:43Z")

</div>

我认为这不再受支持了

> [@Animated GIF avatars no longer supported by default](https://meta.discourse.org/t/animated-gif-avatars-no-longer-supported-by-default/167224):
>
> In order to simplify the Discourse codebase, support for animated GIF avatars will no longer be included in Discourse by default as of the current 2.6 beta. [[image] ](https://media.tenor.com/images/8cf675c4eb56287c439749c1b2878ba1/tenor.gif) Note that animated GIFs in posts will continue to work (of course!), we are specifically and ONLY referring to avatars here. It is possible that a future plugin may re-enable animated GIF avatar support for sites that require it, but we don’t have a timeline for this plugin at the curr…

---

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月22日 07:09 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/3 "2021-04-22T07:09:03Z")

</div>

我也有同样的想法，不过在别的论坛上确实能行。

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2021年四月22日 08:07 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/4 "2021-04-22T08:07:27Z")

</div>

我以为用户卡片不受影响

> [@Animated GIF avatars no longer supported by default](https://meta.discourse.org/t/animated-gif-avatars-no-longer-supported-by-default/167224/24?u=moin):
>
> Still works on user cards just fine, check mine. We removed support from avatars because we have to resize those a lot, which isn’t a problem in user cards.

@codinghorror 的用户卡片仍然可以正常使用。

问题似乎出现在新的 GIF 上  
[https://meta.discourse.org/t/image-onebox-missing-from-small-images/183309/14?u=moin](https://meta.discourse.org/t/image-onebox-missing-from-small-images/183309/14?u=moin)

---

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月22日 08:29 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/5 "2021-04-22T08:29:20Z")

</div>

我已经查阅了所有与我的问题相关的内容，甚至尝试了许多方法，但完全不起作用。

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2021年四月22日 08:36 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/6 "2021-04-22T08:36:26Z")

</div>

我们已从基础镜像和源代码中移除了 [Gifsicle: Command-Line Animated GIFs](https://www.lcdf.org/gifsicle/)

这意味着我们不再能够优化动画 GIF。我猜测 @codinghorror 仍然可以正常工作，因为它是在 gifsicle 尚存时上传并优化过的。

---

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月22日 09:00 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/7 "2021-04-22T09:00:07Z")

</div>

所以这意味着，已启用 GIF 功能的论坛仍会保留该功能，但新论坛则不会？

---

<div class="post-metadata">

**Author:** ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)\
**Post date:** [2021年四月22日 10:02 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/8 "2021-04-22T10:02:58Z")

</div>

是的，根据 Sam 的解释，情况确实如此。

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021年四月22日 12:26 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/10 "2021-04-22T12:26:53Z")

</div>

正如在同一主题中所说，你可以正常使用 animated webp 文件。

> [@Animated GIF avatars no longer supported by default](https://meta.discourse.org/t/animated-gif-avatars-no-longer-supported-by-default/167224/29?u=falco):
>
> Circling back here, you can use an animated webp for the user card background. Just updated mine here to test.

---

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月22日 22:03 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/14 "2021-04-22T22:03:39Z")

</div>

![ezgif-6-99965f1aa9e6](https://global.discourse-cdn.com/meta/original/3X/c/a/cad0b6f9917c5516c392429070d0fb901947dd39.webp)

我还在一个新论坛中尝试了 GIF 动画，它在那里运行完美。我认为我的网站可能存在问题。

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2021年四月22日 22:06 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/15 "2021-04-22T22:06:35Z")

</div>

刷新此页面并查看我的用户卡片。现在它已由 Katara 驱动！

> [@Adrian\_KI](#):
>
> 我认为我的站点可能出了问题

webp 在 Discourse 中是近期才引入的，请更新到最新版本。

---

<div class="post-metadata">

**Author:** ![Adrian\_KI](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adrian_ki/32/204013_2.png) [@Adrian\_KI](https://meta.discourse.org/u/Adrian_KI)\
**Post date:** [2021年四月22日 22:14 UTC](https://meta.discourse.org/t/animated-gifs-in-user-cards/187686/17 "2021-04-22T22:14:04Z")

</div>

> [@Falco](#):
>
> 现在由卡塔拉驱动了！

太棒了，居然有人知道我最喜欢的系列。谢谢，我一定会试试的！

> [@Falco](#):
>
> 你最好更新到最新版本。

这需要几个月时间，因为我们的托管平台目前只支持稳定的 Discourse 版本。
