# \<img\> width and height attribute oddities

**URL:** <https://meta.discourse.org/t/img-width-and-height-attribute-oddities/26891>\
**Category:** Bug\
**Created:** [March 27, 2015, 11:26pm UTC](https://meta.discourse.org/t/img-width-and-height-attribute-oddities/26891 "2015-03-27T23:26:06Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![anon25879736](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon25879736](https://meta.discourse.org/u/anon25879736)\
**Post date:** [April 1, 2015, 3:16pm UTC](https://meta.discourse.org/t/img-width-and-height-attribute-oddities/26891/7 "2015-04-01T15:16:41Z")

</div>

As pointed out by @Mittineague, the images are going from a raw of:

```plaintext
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="150">
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="100">
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="50">

```

To a cooked HTML of:

```plaintext
<p>
  <img src="//meta-discourse.globl.ssl.fastly.net//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="50" height="46">
  <br>
  <img src="//meta-discourse.globl.ssl.fastly.net//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="50" height="46">
  <br>
  <img src="//meta-discourse.globl.ssl.fastly.net//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/2/3/2302e458436b35f8493259805de0e2e91fd5038e.png" width="50" height="46">
</p>

```

Obviously, something is happening when the post is being cooked.

---

_[View the full topic](https://meta.discourse.org/t/img-width-and-height-attribute-oddities/26891)._
