# Xkcd onebox image getting resized

**URL:** https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613
**Category:** Bug
**Created:** [September 26, 2019, 10:34pm UTC](https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613 "2019-09-26T22:34:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [September 26, 2019, 10:34pm UTC](https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613/1 "2019-09-26T22:34:24Z")

</div>

Does anyone know why oneboxes sometimes show up differently between previews and the actual posts? For example, here’s what I see for an xkcd onebox in the preview:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/04d4ad421ad9997e848e95828f164ddeedb6e654.png)

But in the actual post it appears as:

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

Link for reference: [xkcd: Exploits of a Mom](https://xkcd.com/327/)

---

<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: [September 27, 2019, 4:07pm UTC](https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613/2 "2019-09-27T16:07:43Z")

</div>

I think that is a regression cc @techAPJ as we have a custom xkcd oneboxer.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [October 22, 2019, 7:36am UTC](https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613/4 "2019-10-22T07:36:59Z")

</div>

This is now fixed via:

[https://github.com/discourse/onebox/commit/82986e313708143ab9537d3909a98be41bf32c75](https://github.com/discourse/onebox/commit/82986e313708143ab9537d3909a98be41bf32c75)

Thanks for reporting this issue @seanblue. 👍

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [October 22, 2019, 7:37am UTC](https://meta.discourse.org/t/xkcd-onebox-image-getting-resized/131613/5 "2019-10-22T07:37:02Z")

</div>


