# 如何配置才能使高图像不显示为缩略图？

**URL:** <https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687>\
**Category:** Feature\
**Created:** [2023年十二月24日 14:52 UTC](https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687 "2023-12-24T14:52:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deltaR](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@deltaR](https://meta.discourse.org/u/deltaR)\
**Post date:** [2023年十二月24日 14:52 UTC](https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687/1 "2023-12-24T14:52:46Z")

</div>

如何配置才能使长图不显示为缩略图，而是保持其原始的宽度和高度，或者适应屏幕宽度？

这样，我认为人们很难看清。

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/6/2d6ad5998bdc05eacddb0a242c58612951d520f6.png)  
 ![IMG_8489](https://global.discourse-cdn.com/meta/original/4X/1/f/5/1f5273c814e83b87ebbb7ee61c36b386ea11b085.jpeg)

---

<div class="post-metadata">

**Author:** ![deltaR](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@deltaR](https://meta.discourse.org/u/deltaR)\
**Post date:** [2023年十二月24日 15:00 UTC](https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687/2 "2023-12-24T15:00:44Z")

</div>

我的部分设置如下：  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/e/4/8/e48affdce96c8a58f00e8b55793d00381bba3168.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/c/9/2c9b8945bed02193c357c86b354b2168769028d7.png)

---

<div class="post-metadata">

**Author:** ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Post date:** [2023年十二月25日 05:46 UTC](https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687/3 "2023-12-25T05:46:49Z")

</div>

来看看这个 #Customization > Theme component ，我觉得这正是你需要的。

> [@长篇改编](https://meta.discourse.org/t/long-picture-adaptation/279538):
>
> information_source摘要 针对长宽比大于 2:1 的图片进行拉伸hammer_and_wrench仓库 [GitHub - Lhcfl/discourse-larger-long-image](https://github.com/Lhcfl/discourse-larger-long-image)question安装指南 [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookDiscourse 主题新手？ [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Discourse 通常会将图片缩放到合适的大小并放入精美的灯箱中。但有时会出现长图，这会产生副作用。长图被拉伸成细长的 41x500 像素条。 此主题组件将对长宽比大于 2:1 的图片应用拉伸，使其填满帖子的宽度。 效果 before after

---

<div class="post-metadata">

**Author:** ![deltaR](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@deltaR](https://meta.discourse.org/u/deltaR)\
**Post date:** [2023年十二月25日 05:53 UTC](https://meta.discourse.org/t/how-to-configure-it-so-that-the-tall-image-is-not-displayed-as-a-thumbnail/289687/4 "2023-12-25T05:53:26Z")

</div>

太棒了！这正是我想要的，谢谢！
