# 动画头像

**URL:** https://meta.discourse.org/t/animated-avatar/220445
**Category:** Plugin
**Tags:** experimental
**Created:** [2022年三月8日 18:24 UTC](https://meta.discourse.org/t/animated-avatar/220445 "2022-03-08T18:24:58Z")
**Posts on this page:** 1
**Showing post:** 70

<div class="post-metadata">

### Author: ![Alteras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alteras/32/179824_2.png) [@Alteras](https://meta.discourse.org/u/Alteras)
#### Post date: [2026年八月26日 21:23 UTC](https://meta.discourse.org/t/animated-avatar/220445/70 "2026-08-26T21:23:26Z")

</div>

> [@akanora](#):
>
> 我试着把它换成 PNG 格式的个人头像，结果弹出了提示框并报错

> [@satonotdead](#):
>
> 我又试了一次，使用了一张动画 `webp` 图片，看到了以下输出：

看来我的修复暴露了一个隐藏的错误。我已在代码仓库中更新了另一个修复方案（并增加了更多测试）。Discourse `v2026.8` 及更高版本均受此影响。

> [@satonotdead](#):
>
> 但图片仍然是 `png` 格式。

致命错误和上传被阻止是一个 bug，现已修复。不过，目前尚不支持动画 WebP 图片。该插件最初是为 GIF 设计的，其他图片格式仍保持静态。未来可能会添加对动画 WebP（以及 APNG）的支持。

* * *

> <https://github.com/discourse/discourse-animated-avatars/commit/012466acda624efdfc980549e26cc7a057d73fef>
>
> This commit fixes a regression where non GIF files were processing through gifsi…cle. Previously, uploads would go through \`.optimize\`, which would silently catch these failures and pass on to imagemagick. Now we only let GIF files pass through gifsicle.
> 
> Also cleans up the gifsicle crop to use \`x1,y1+widthxheight\` input. Was previously relying on undocumented internal behavior in gifsicle to fallback from single input.
> 
> \---------
> 
> Co-authored-by: discourse-patch-triage\[bot\] \<272280883+discourse-patch-triage\[bot\]@users.noreply.github.com\>

---

_[View the full topic](https://meta.discourse.org/t/animated-avatar/220445)._
