# Изображения в Onebox с неверным соотношением сторон, когда oEmbed указывает размеры для встраивания в богатый HTML

**URL:** https://meta.discourse.org/t/onebox-images-with-bad-aspect-when-oembed-specifies-dimentions-for-rich-html-embeds/277098
**Category:** Bug
**Tags:** onebox
**Created:** [29.Август.2023 20:05:00 UTC](https://meta.discourse.org/t/onebox-images-with-bad-aspect-when-oembed-specifies-dimentions-for-rich-html-embeds/277098 "2023-08-29T20:05:00Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [21.Январь.2026 10:16:31 UTC](https://meta.discourse.org/t/onebox-images-with-bad-aspect-when-oembed-specifies-dimentions-for-rich-html-embeds/277098/22 "2026-01-21T10:16:31Z")

</div>

Этот случай был упущен ранее, но теперь он должен быть исправлен благодаря этому изменению:

> <https://github.com/discourse/discourse/commit/fb2a2c02f106f29ee7837bf7c5bd94361ee9c330>
>
> Prevents taking the dimensions from oEmbed when using rich data.
> 
> It also makes …a small change to how embedded html in
> \`AllowlistedGenericOnebox\` works, previously it would not render when
> the height value was not present. I have made the height value optional,
> which should be fine since the default dimensions set by the browser
> (typically 150 pixels high) will be used as a fallback.

---

_[View the full topic](https://meta.discourse.org/t/onebox-images-with-bad-aspect-when-oembed-specifies-dimentions-for-rich-html-embeds/277098)._
