# Changing image width/height manually does not always work!

**URL:** <https://meta.discourse.org/t/changing-image-width-height-manually-does-not-always-work/86649>\
**Category:** Support\
**Created:** [May 2, 2018, 7:40am UTC](https://meta.discourse.org/t/changing-image-width-height-manually-does-not-always-work/86649 "2018-05-02T07:40:25Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [May 4, 2018, 10:10am UTC](https://meta.discourse.org/t/changing-image-width-height-manually-does-not-always-work/86649/8 "2018-05-04T10:10:48Z")

</div>

> [@ccstone](#):
>
> The problem we have is that changing the image’s width/height doesn’t always work on the display page – even though the image is perfectly resized in the editor preview.

Yeah, there is a _slight_ discrepancy between the preview and the cooked image.

In the preview, we’ll always show the **original** image resized to fit the “`{max image width}x{max image height}`” (`690x500` by default) dimension.

In the cooked post, we’ll often show the **optimized** image which might get cropped if it’s [taller than 18:9](https://github.com/discourse/discourse/blob/07f4d16f32a79a4ae8fceb07c6f42e4f34f889f8/lib/cooked_post_processor.rb#L270-L272) (_latest phablets form factor_).

That’s what’s happening in your case. The image ratio is `3212 / 1064 = 3` which is taller than `18 / 9 = 2`.

---

_[View the full topic](https://meta.discourse.org/t/changing-image-width-height-manually-does-not-always-work/86649)._
