# שינוי גודל תמונה לא עובד אם טקסט חלופי חסר

**URL:** <https://meta.discourse.org/t/image-scaling-not-working-if-alt-text-is-missing/179883>\
**Category:** Bug\
**Created:** [16 בפברואר,‏ 2021,‏ 1:37pm UTC](https://meta.discourse.org/t/image-scaling-not-working-if-alt-text-is-missing/179883 "2021-02-16T13:37:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [18 בפברואר,‏ 2021,‏ 12:54am UTC](https://meta.discourse.org/t/image-scaling-not-working-if-alt-text-is-missing/179883/7 "2021-02-18T00:54:37Z")

</div>

Yeah looks like this was my change. I had assumed the previous implementation was a bug. All our tests assume the dimensions will be after a `|` character:

> <https://github.com/discourse/discourse/blob/c4ff6def8eeca471cd4b75ddc41e8355248b376d/spec/components/pretty_text_spec.rb#L1527-L1533>

I could revert us back to the old behaviour, and add a test to make sure it keeps working. But doing that means that you can never have an image with alt text like `123x123`.

@renato do you know how you ended up without any pipe character in the markdown? As far as I know, all the UI options should generate it with a pipe 🤔

---

_[View the full topic](https://meta.discourse.org/t/image-scaling-not-working-if-alt-text-is-missing/179883)._
