# 即使图像大小低于最大值kb，图像也会被重新采样

**URL:** <https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577>\
**Category:** Support\
**Created:** [2023年三月27日 16:16 UTC](https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577 "2023-03-27T16:16:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**Post date:** [2023年三月27日 16:16 UTC](https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577/1 "2023-03-27T16:16:43Z")

</div>

我的理解是，低于 `max image size kb` 中定义的文件的图片不会被重新采样，但我并没有看到这种情况。例如，我将该设置设置为 3000 KB；我有一张 2.4 MB 的 jpg 图片，但当我发布图片，然后在灯箱中使用下载按钮时，生成的 jpg 图片是 1.4 MB。即使是较小的文件，也是如此，原始文件为 863 KB，下载文件为 542 KB。图片看起来也被重新采样了，颜色和清晰度有轻微变化。对于一群挑剔的摄影师来说，这可不好，因为他们能注意到自己图片的每一个细微变化。有什么办法可以解释这种情况并避免它吗？我完全理解 3 MB 以上的图片应该被降采样，但在那之下，如果可能的话，最好不要动它们。

我做了更多阅读，了解到 discourse 会为灯箱创建缩略图，这些缩略图可能被降采样了。灯箱中的下载按钮下载的是那个重新采样的版本，而不是原始版本吗？另外，如果我点击“查看完整尺寸”并下载该图片，它会是 .webp 格式，除了在 Safari 中，我会得到一个 jpg，但它仍然比原始文件小。只是想弄明白这一切！谢谢！

---

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [2023年三月27日 23:55 UTC](https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577/2 "2023-03-27T23:55:04Z")

</div>

请看这个帖子：

> [@Auto convert upload to JPG?](https://meta.discourse.org/t/auto-convert-upload-to-jpg/258309):
>
> I have noticed that some image uploads always convert to jpeg, this creates ugly situations with images with transparent elements and dark/light mode. I couldn’t find a setting for this, can we somehow turn this off? I’ve tried uploading an image in webp, png and it always converts it to jpg, how so?

我猜你看到的是客户端优化。

---

<div class="post-metadata">

**Author:** ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**Post date:** [2023年三月28日 00:04 UTC](https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577/3 "2023-03-28T00:04:12Z")

</div>

我怎么会错过 `recompress original jpg quality`！气死我了，谢谢你，Matt！

---

<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:** [2023年四月27日 00:04 UTC](https://meta.discourse.org/t/images-resampled-even-if-below-max-image-size-kb/259577/4 "2023-04-27T00:04:18Z")

</div>

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