# Can't override size of image oneboxes

**URL:** <https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704>\
**Category:** Feature\
**Created:** [June 18, 2017, 4:11pm UTC](https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704 "2017-06-18T16:11:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)\
**Post date:** [June 18, 2017, 4:11pm UTC](https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704/1 "2017-06-18T16:11:59Z")

</div>

The following image has its height set to 100 (i.e. `<img src="" height=100>`, view post source), and looks fine in the initial post drafting preview, but when it’s posted it becomes very large. I suspect this is due to the mouseover preview which allows the image to be expanded.

[https://thumbs.gfycat.com/MerryAthleticBeardeddragon-size\_restricted.gif(image larger than 10 MB)](https://thumbs.gfycat.com/MerryAthleticBeardeddragon-size_restricted.gif)

---

<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:** [June 18, 2017, 10:00pm UTC](https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704/2 "2017-06-18T22:00:53Z")

</div>

You can’t restrict the size of oneboxes. This is not an image per se it is a onebox of gifycat.

---

<div class="post-metadata">

**Author:** ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)\
**Post date:** [June 18, 2017, 10:15pm UTC](https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704/3 "2017-06-18T22:15:29Z")

</div>

Would this be an issue with the gif not being downloaded, and instead being oneboxed, then? Looking back at some of my previous posts on the Discourse forum I use, it seems some, like this gif, remain gfycat links and are oneboxed, while others are saved to the forum and displayed as gifs.

---

<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:** [June 18, 2017, 11:37pm UTC](https://meta.discourse.org/t/cant-override-size-of-image-oneboxes/64704/4 "2017-06-18T23:37:39Z")

</div>

There is a size limit of images that will be downloaded, yes, for security and sanity reasons. You can’t link to hundreds of 50mb gifs and crash a site with out of disk space.
