# Onebox images in email notifications are HUGE

**URL:** <https://meta.discourse.org/t/onebox-images-in-email-notifications-are-huge/34778>\
**Category:** Bug\
**Created:** [21.Октябрь.2015 23:17:30 UTC](https://meta.discourse.org/t/onebox-images-in-email-notifications-are-huge/34778 "2015-10-21T23:17:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [30.Октябрь.2015 00:27:01 UTC](https://meta.discourse.org/t/onebox-images-in-email-notifications-are-huge/34778/5 "2015-10-30T00:27:01Z")

</div>

Yeah this has screwed up my email notifications on iPhone with images now look super wide, as they ‘stretch’ to the size of the largest image, like this:

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

The actual markup is

`<img src="image.png" width="auto" height="auto" class="CToWUd">`

The line that was incorrectly removed is

```
add_styles(img, 'max-width:100%;') if img['style'] !~ /max-width/

```

Since there is no max width, the email will just become super tiny / wide if the embedded image is very wide.

---

_[View the full topic](https://meta.discourse.org/t/onebox-images-in-email-notifications-are-huge/34778)._
