# 自动将网格应用于图片上传

**URL:** https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784
**Category:** Announcements
**Created:** [2026年一月30日 19:25 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784 "2026-01-30T19:25:55Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [2026年一月30日 19:25 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/1 "2026-01-30T19:25:55Z")

</div>

[图片网格](https://meta.discourse.org/t/introducing-image-grids-in-posts/268664)将上传的图片排列成一个瀑布流网格布局，这是以有趣的方式展示图片而不会占用太多视觉空间的好方法，如下所示：

 ![crab nebula](https://global.discourse-cdn.com/meta/original/4X/f/e/3/fe364397b105fd2d70fcac17a7c62d9b44b24712.jpeg)

 ![westerlund 2](https://global.discourse-cdn.com/meta/original/4X/6/e/a/6eafc782a7c0e3321872cb80bc7552c63d83eac1.jpeg)

 ![pillars of creation](https://global.discourse-cdn.com/meta/original/4X/6/a/0/6a0902d2c94c4db934baef1a58947b2027da8363.jpeg)

 ![ngc galaxy](https://global.discourse-cdn.com/meta/original/4X/4/9/9/499cbbbfd3bdd67120c7024a42da95a611b3dae1.jpeg)

 ![starbirth](https://global.discourse-cdn.com/meta/original/4X/1/6/6/1664b3fd47883ef1af7bd138462fe6cdaedb5a15.jpeg)

 ![bubble nebula](https://global.discourse-cdn.com/meta/original/4X/e/6/9/e69893c9fd8274edc812f5b94841be98c120f5c3.jpeg)

虽然成员可以手动添加网格，但您可以启用 `experimental auto grid images`（实验性自动网格图片）设置，以便自动将网格应用于上传的 3 张或更多图片。以下是您的成员看到的效果：

发布后，他们会看到图片整齐地排列在一起，就像您在本文顶部看到的那样。这减轻了成员的负担，同时保持了社区帖子的整洁，也有助于更容易地发现新的[图片轮播](https://meta.discourse.org/t/take-the-new-carousel-mode-for-a-spin/392955)等功能。

**注意** ：尽管此设置标记为 `experimental`（实验性），但我们在 Meta 和内部社区已使用数月，因此对您的社区来说也是安全的！

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2026年一月31日 18:26 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/2 "2026-01-31T18:26:16Z")

</div>

我早在 2024 年就提到过：

> [@Richie](#):
>
> 自动网格化裁剪用户上传的图片非常剧烈，会切掉边缘，让旁观者看起来风景照变成了肖像照 😢

虽然此功能仍处于实验阶段，但是否有计划更好地支持风景方向照片的网格化？🙏 🙂

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2026年二月2日 12:12 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/3 "2026-02-02T12:12:13Z")

</div>

> [@Richie](#):
>
> 虽然此功能仍处于实验阶段，但是否有计划更好地支持横向照片的网格化？🙏 🙂

我们确实添加了一个新模式 [试用新的轮播模式](https://meta.discourse.org/t/take-the-new-carousel-mode-for-a-spin/392955)，该模式没有裁剪问题。

在网格中，总会有一些取舍。要做到恰到好处非常困难。

---

<div class="post-metadata">

### Author: ![stephtara](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephtara/32/517827_2.png) [@stephtara](https://meta.discourse.org/u/stephtara)
#### Post date: [2026年三月22日 18:31 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/4 "2026-03-22T18:31:21Z")

</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: [2026年四月7日 18:13 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/5 "2026-04-07T18:13:26Z")

</div>

我推测，那条提示称“此更改即将变为永久”的通知，意味着该设置（当初专门添加，是因为自动网格默认并非适用于所有社区）届时将被移除。是这样吗？

 ![Screenshot_20260408_145212_Firefox](https://global.discourse-cdn.com/meta/original/4X/c/3/f/c3f39df3d93da98703dccc1e141dfb4c9df7d1f6.jpeg)

对我来说，它依然和当初一样令人烦扰。我经常一次性上传所有截图，然后再在帖子中整理它们。这或许是因为我使用平板电脑，而默认预览图相当小，所以通常先把所有需要的截图放入帖子，再利用 Discourse 的预览功能来决定哪张图对应哪段文字，这样反而更方便。但正因如此，我经常需要手动移除网格标签。因此，我仍然更希望在我的个人论坛中禁用该功能（在 Meta 上也禁用对我同样有帮助，但在这里我已经习惯了手动移除这些标签；有时我甚至后悔当初曾帮忙定位导致自动网格在非英语界面中无法运行的 bug，因为那对我来说其实算是一个功能）。

即使我不使用平板上传，我也不希望默认情况下图片中的信息被隐藏——不打开灯箱，往往并不清楚到底遗漏了多少内容。轮播模式并不能真正解决这个问题，因为并没有自动轮播模式；自动网格的结果依然是和以前一样的网格布局。我知道在富文本编辑器（RTE）中有一个切换按钮，但在 Markdown 模式下，需要手动添加相应的语法。这甚至比移除网格标签还要麻烦。  
此外，在轮播模式下也无法看到所有信息。它有点像在网格中查看灯箱时的缩小版：你只能看到一张完整的图片，却无法同时看到所有图片。如果用户分享了多张他们作品的照片，我希望能够追踪布线情况。要做到这一点，我需要能够同时看到电路板的正面和背面，以及与其连接的其他组件的照片，而不是依次查看，也不是只看照片的局部。因此，我认为该论坛未来最好继续保持禁用此功能。

---

<div class="post-metadata">

### Author: ![gilles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gilles/32/549022_2.png) [@gilles](https://meta.discourse.org/u/gilles)
#### Post date: [2026年四月7日 18:29 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/6 "2026-04-07T18:29:31Z")

</div>

这仅适用于上传的图片，因为直接复制粘贴无法工作，我认为系统无法识别图片数量。我并不想先下载图片再上传，那样太浪费时间，尤其在手机或平板上。因此，我这边会添加 grid 标签，然后直接复制粘贴图片。也许在 grid 模式下复制粘贴图片也能生效。我的目标是节省时间，对我个人来说还好，但我觉得其他用户可能不太使用这个功能，因为操作太繁琐了。

不过众口难调，也许很多人确实需要上传图片，所以对我来说无需更改：rofl:

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2026年四月8日 12:45 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/7 "2026-04-08T12:45:08Z")

</div>

> [@Moin](#):
>
> 我理解，那条关于此更改即将永久生效的通知，意味着该设置（其初衷是自动网格并非对所有社区都适用）将被移除。是这样吗？

真的吗？😱

有没有可能通过主题组件来阻止这种情况？🤔

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年四月8日 12:56 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/8 "2026-04-08T12:56:19Z")

</div>

是的，我绝对不想在任何论坛上启用那个自动网格功能。请确保我们可以禁用它。目前我将其设置为空组（以防它随组设置被推入核心）。如果用户想要网格布局，他们可以添加标签“-”（这也是一个易于添加的 Composer 按钮主题组件）。

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2026年四月14日 01:51 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/10 "2026-04-14T01:51:40Z")

</div>

> [@Moin](#):
>
> 我推测，提示此更改即将成为永久设置的公告，意味着该设置（其初衷是自动网格并非适用于所有社区）将被移除。是这样吗？

当所有即将推出的更改达到“稳定”状态时，都会显示此消息。我们最近已将此更改及其他一些更改设为“稳定”。

然而，根据 [介绍“即将推出的更改”系统，用于管理社区中新功能及现有功能变更](https://meta.discourse.org/t/introducing-upcoming-changes-a-system-to-manage-new-features-and-changes-to-existing-functionality-in-your-community/392894) 所述，并非所有即将推出的更改都旨在成为永久性的，即我们不会在最终完全移除该设置及其背后的代码逻辑。

在此情况下，“稳定”意味着我们已将其对大多数站点启用，但它们仍可选择不启用，且我们无意将其作为唯一选项强制推行。

我需要为某些即将推出的更改提供一种方式来表明我们预期的“最终状态”。目前，您可以忽略“即将推出的更改”界面中的警告：我们不会将“启用自动网格图片”移至“永久”状态，也不会移除该设置。

---

<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年四月14日 07:38 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/14 "2026-04-14T07:38:58Z")

</div>

我觉得如果影响类型是“设置默认值”，对我来说可能会更清晰。我想这样最后它仍然是一个设置，这一点就更明显了。

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2026年四月15日 00:00 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/15 "2026-04-15T00:00:22Z")

</div>

这种影响类型/即将进行的站点设置默认值更改是前几天才合并的，而该图像网格功能是在我们拥有该功能之前创建的，属于迁移的“遗留”实验性站点设置。

我们已讨论过，未来任何此类设置默认值的即将更改在稳定版上将不会显示此警告，也不会包含在已禁用的稳定版即将更改的管理问题检查中。

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2026年四月21日 06:44 UTC](https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/16 "2026-04-21T06:44:12Z")

</div>

好的，这里完成了：

> <https://github.com/discourse/discourse/pull/39392>
>
> It is misleading to tell admins that a change will soon become permanent
> when i…t's in the stable status for site setting default type upcoming
> changes.
> 
> This is because those changes are merely indicating that a
> setting default is changing, not that existing behaviour will be removed
> altogether. When the upcoming change is removed, the setting will still
> stay available for admins to change themselves in future.
> 
> c.f. https://meta.discourse.org/t/automatically-apply-grids-to-image-uploads/394784/10?u=martin
> 
> Example of setting that should show the warning:
> 
> \<img width="974" height="172" alt="image" src="https://github.com/user-attachments/assets/41a9ca5c-052a-4c67-b81d-63fb31d54626" /\>
> 
> Example of one which shouldn't:
> 
> \<img width="971" height="147" alt="image" src="https://github.com/user-attachments/assets/aca96a72-1ac3-4185-b7ed-951ddd7acc15" /\>
