# Resized images are cropped in the composer preview

**URL:** https://meta.discourse.org/t/resized-images-are-cropped-in-the-composer-preview/395566
**Category:** UX
**Tags:** composer
**Created:** [February 9, 2026, 4:17pm UTC](https://meta.discourse.org/t/resized-images-are-cropped-in-the-composer-preview/395566 "2026-02-09T16:17:38Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 9, 2026, 4:17pm UTC](https://meta.discourse.org/t/resized-images-are-cropped-in-the-composer-preview/395566/1 "2026-02-09T16:17:38Z")

</div>

Oddly, I didn’t find any topic about that, but it has been a long-standing minor issue.

Here, I defined the custom size as 50×20 for a square emoji:

`![squish!|50x20](https://emoji.discourse-cdn.com/twitter/melting_face.png?v=15)`

Result in the markdown composer preview:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/7/3/b730c7e6822d173c70e1be01f9bc84cf54424066.png)

Result in the post looks as expected:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/c/e6cbff261dc278cb43883ee99621c69027eca4f2.png)

Also, images that have been given custom height and width in the markdown editor ignore those attributes when we switch to the rich editor markdown:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/1/dc135a4952ba03eb3ebce6a8a588a6deab151c31.png)

However, it looks as expected when posted.

---

_[View the full topic](https://meta.discourse.org/t/resized-images-are-cropped-in-the-composer-preview/395566)._
