# 修复超过 4096KB 的图片？

**URL:** <https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718>\
**Category:** Support\
**Created:** [2019年十二月12日 05:11 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718 "2019-12-12T05:11:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![smileypants707](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smileypants707/32/129984_2.png) [@smileypants707](https://meta.discourse.org/u/smileypants707)\
**Post date:** [2019年十二月12日 05:11 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/1 "2019-12-12T05:11:47Z")

</div>

作为管理员，我可以修复包含此错误的用户帖子吗？

 ![Screenshot_20191211-210616_Chrome](https://global.discourse-cdn.com/meta/original/3X/0/a/0a4be905b2dc659ea55ac2ab08e8e19d81009347.jpeg)

如果可以，该怎么做？

---

<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:** [2019年十二月12日 05:18 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/2 "2019-12-12T05:18:58Z")

</div>

最简单的办法是直接下载图片，然后再上传，这样我们处理超大图片的自动调整大小逻辑就会生效。

其他选项是提高最大上传尺寸的限制，但在托管实例上，这需要与我们协调。

---

<div class="post-metadata">

**Author:** ![smileypants707](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smileypants707/32/129984_2.png) [@smileypants707](https://meta.discourse.org/u/smileypants707)\
**Post date:** [2019年十二月12日 06:29 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/3 "2019-12-12T06:29:08Z")

</div>

最简单的办法奏效了！谢谢 😊

---

<div class="post-metadata">

**Author:** ![smrtey](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@smrtey](https://meta.discourse.org/u/smrtey)\
**Post date:** [2019年十二月20日 21:21 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/4 "2019-12-20T21:21:31Z")

</div>

> [@sam](#):
>
> 最简单的方法就是先下载图片，然后再上传，这样我们针对超大图片的自动调整大小逻辑就会生效。

有人试图发布这张 Giphy 动图

[https://media.giphy.com/media/N6703c4xj9koo/giphy.gif(image larger than 10 MB)](https://media.giphy.com/media/N6703c4xj9koo/giphy.gif)

起初图片能正常加载，但几分钟后就无法显示了，并出现以下提示：  
 ![image](https://global.discourse-cdn.com/meta/original/3X/b/c/bc69366c560022552c06d3d7d34ca23cd9b09551.png)

如果我下载该图片并尝试重新上传，会收到如下消息：

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/a/aa4e88b1459fdd49e5d47e5b17c56a6de90b29ae.png)

我哪里做错了？为什么自动调整逻辑没有生效？

---

<div class="post-metadata">

**Author:** ![smileypants707](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smileypants707/32/129984_2.png) [@smileypants707](https://meta.discourse.org/u/smileypants707)\
**Post date:** [2019年十二月20日 22:19 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/5 "2019-12-20T22:19:18Z")

</div>

是的，我也遇到了完全相同的问题。只是我一直没时间跟进。上面的解决方案只能暂时生效，之后就不行了。

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年十二月21日 02:26 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/6 "2019-12-21T02:26:25Z")

</div>

请尝试使用视频链接，而不是巨大且低效的动图——这确实会给移动设备用户带来很大负担。

此建议同时适用于您和 @smrtey。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2020年一月20日 18:36 UTC](https://meta.discourse.org/t/fixing-an-image-larger-than-4096kb/135718/8 "2020-01-20T18:36:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
