SVG动画未正确渲染

我将此 .svg上传到我的帖子中,就像上传其他任何图片一样。

在郁郁葱葱的花园里,一只雄伟的孔雀,羽毛鲜艳,主要是蓝色和绿色,庄严地站在盛开的花朵和摇曳的树木之间,它优雅地抬起头,展示着它华丽的羽毛。(由 AI 题注)

这是我在预览中看到的内容:

如果我在浏览器中直接打开 .svg(访问 https://raw.githubusercontent.com/marionebl/svg-term-cli/refs/heads/master/examples/parrot.svg)或在 GitHub 上查看(例如在此 README.md 中:https://github.com/marionebl/svg-term-cli/tree/master),它会正确渲染。

.svg 已启用作为上传类型,并且我认为 .svg 的大小没有问题。

2 个赞

我快速看了一下,似乎在上传 SVG 后,\u003cdefs\u003e 内部的内容消失了。

symbol 不在白名单中,这就是原因:

现在可以了:

The image shows a Telegram download link in the chat with the filename "parrot(1)6231x0 (upload://fKaLFUt9RBvAWJoEpo5TVv0)", leading to a direct link to a hidden cdc file segment. (Captioned by AI)

我认为允许它没有问题。 :thinking:


已提交一个快速 PR:

5 个赞