Для списков генерируются оптимизированные изображения, и предоставляются различные разрешения для дисплеев с высокой плотностью пикселей. Изображения загружаются по мере прокрутки (там, где это поддерживается нативно браузером).
По умолчанию Discourse использует первое изображение в первом посте (OP) темы. Если вы хотите выбрать другое изображение из первого поста, добавьте |thumbnail к markdown-разметке. Например:

 << это изображение будет миниатюрой
Существует пять режимов, которые можно настроить для каждой категории или тега с помощью настроек темы.
Если вы хотите, чтобы Oneboxes в ваших сообщениях генерировали миниатюры, вам нужно включить следующую настройку сайта: download_remote_images_to_local. Также вам потребуется перезаписать соответствующие сообщения.
Настройки
Название
Описание
режим миниатюры по умолчанию
Какой режим отображения миниатюр следует использовать по умолчанию
режим миниатюры для документации
Если включен плагин документации, какой режим отображения миниатюр следует использовать для тем документации
категории в стиле блога
В этих категориях будет использоваться представление в стиле блога. Этот стиль использует выдержки из тем, если они включены через тему или компонент темы
категории минималистичной сетки
В этих категориях будет использоваться представление минималистичной сетки
категории сетки
В этих категориях будет использоваться представление сетки
категории мозаики
В этих категориях будет использоваться представление мозаики
категории списка
В этих категориях будет использоваться представление списка
теги в стиле блога
теги минималистичной сетки
Для этих тегов будет использоваться представление минималистичной сетки
теги сетки
Для этих тегов будет использоваться представление сетки
теги мозаики
Для этих тегов будет использоваться представление мозаики
теги списка
Для этих тегов будет использоваться представление списка
режим предложенных тем
Какой режим отображения миниатюр следует использовать для предложенных тем? Если поле пустое, будет использоваться настройка «включить вне списков тем».
включить вне списков тем
Включить миниатюры на страницах, не являющихся списками тем (например, активность пользователя, личные сообщения, предложенные темы)
иконка-заполнитель
Иконка, отображаемая для тем без изображений миниатюр
миниатюры на мобильных устройствах
Включить миниатюры на мобильных устройствах
размер миниатюры в списке
Базовый размер миниатюр в представлении «список»
Размещены у нас? Компоненты тем доступны для использования в наших тарифных планах Pro, Business и Enterprise.
Absolutely fantastic that core is paying more attention to image delivery and presentation. I like the direction!
(If this doesn’t fully replace Topic List Previews, there is now at least potential to eliminate a lot of bespoke API work from it which I won’t have to maintain anymore, great stuff!)
PS I just tested it and one thing that would be quite nice is if Polls generated a thumbnail so the charts could surface …
I have a very odd problem that only applies to one member on my site. Some thumbnails do not display, seemingly randomly. It displays the default icon as if there was no image, yet for myself and everyone else the thumbnail displays. I had him look in his console and there is nothing pertinent, nothing in the logs either. I’ve had him try clearing the cache, trying different browsers and devices, and using a different isp. I even had him try a theme with only this component enabled. No matter what he tries this still happens. I even tried impersonating him and then it doesn’t happen for me. Any other thoughts on troubleshooting this? Thanks!
Have him try on mobile with wifi disabled so he’s not going through his home network, but the cellular network. This will eliminate anything on his network from interfering.
But if you have tried “different ISP” then maybe not.
I can’t get this to work anymore, did this revert perhaps?
Also, the feature is not easy to discover for users. Would it be possible to add an option to select the thumbnail to the ‘size selection’ in the preview?
Thanks Jeff, he has tried hotspotting to his phone, and at a friends house with a different ISP. I thought it might be a CDN issue so I tried clearing the CDN cache which did not help him. I also tried impersonating him while using a VPN in Atlanta where he is from which did not help either. I’m not sure what else to try.
I have the following requirement and maybe you can point me to how to achieve this.
Sometimes we have a topic that we want to share via social media and we prepare an image for it that should be used as thumbnail and for the og:image tags, but we don’t want it to be visible inside the topic.
How could we realize something like this e.g. add “hide” to the sizes and then a class is added to the image container that applies “display: none;”?
It’s somewhat by design. Normally, that bar sits on top of the column headings in the topic list. The alternative would be for the bar to “push down” all the topics when it appears, which would make the entire UI jump down, and could be quite jarring.
I’m not sure why there is a ~1px gap on the right hand side of the bar in your screenshot. That could be an issue with the component, or it could be related to your custom theme CSS.