# 为 apple\_touch\_icon 设置添加 SVG 警告

**URL:** https://meta.discourse.org/t/adding-svg-warnings-to-apple-touch-icon-setting/407481
**Category:** UX
**Created:** [2026年七月13日 18:13 UTC](https://meta.discourse.org/t/adding-svg-warnings-to-apple-touch-icon-setting/407481 "2026-07-13T18:13:58Z")
**Posts on this page:** 1
**Page:** 1

<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: [2026年七月13日 18:13 UTC](https://meta.discourse.org/t/adding-svg-warnings-to-apple-touch-icon-setting/407481/1 "2026-07-13T18:13:59Z")

</div>

`digest_logo` 站点设置的描述以及 Logo 配置页面中 digest logo 选项下方的文本都告诉管理员不要使用 SVG 图像。

> 用于您站点电子邮件摘要顶部的替代 Logo 图像。请使用宽矩形图像。 **不要使用 SVG 图像** 。如果留空，将使用 Logo 设置中的图像。

> **截图**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/f/2/d/f2d920dc7f658af55a8456b1611febdce693cd47.png)  
> ![image](https://global.discourse-cdn.com/meta/original/4X/9/7/f/97f8495dc5532222b61e4ad7d9c4294b8c8ca5be.png)

因此，我假设在其他未显示此警告的 Logo 上使用 SVG 图像是可以的。但随后 DiscourseHub 中的 Logo 无法正常工作。在 [Large icon not rendering in DiscourseHub as site logo - #4 by pmusaraj](https://meta.discourse.org/t/large-icon-not-rendering-in-discoursehub-as-site-logo/384647/4) 中，我了解到 SVG 文件不适用于 `apple_touch_icon` 设置。

因此，我的建议是更新这些描述以显示类似的警告：

> 用于 Apple 触摸设备的图标。不要使用 SVG 图像。 不建议使用透明背景。将自动调整为 180x180。如果留空，将使用 {{setting:large\_icon}}。

> 推荐尺寸为 180 x 180 像素。不要使用 SVG 图像。 不建议使用透明背景。

> <https://github.com/discourse/discourse/pull/41675>
>
> The \`digest\_logo\` setting already warns admins not to use SVG images, but a simi…lar warning is missing from the \`apple\_touch\_icon\` site setting, which can lead to confusing issues like logos not appearing in DiscourseHub.
> 
> This PR adds matching SVG warnings.
> 
> Related discussion: https://meta.discourse.org/t/adding-svg-warnings-to-apple-touch-icon-setting/407481
