# Custom image size not working as expected

**URL:** <https://forums.realmacsoftware.com/t/custom-image-size-not-working-as-expected/43917>\
**Category:** RapidWeaver Elements\
**Created:** [July 27, 2024, 3:00pm UTC](https://forums.realmacsoftware.com/t/custom-image-size-not-working-as-expected/43917 "2024-07-27T15:00:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![klap](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/klap/32/25866_2.png) [@klap](https://forums.realmacsoftware.com/u/klap)\
**Post date:** [July 27, 2024, 3:00pm UTC](https://forums.realmacsoftware.com/t/custom-image-size-not-working-as-expected/43917/1 "2024-07-27T15:00:49Z")

</div>

Hi Beta Team,

Not sure if this is an actual issue or just my lack of understanding the option. FYI, when resizing custom on an image component. I get the following error message. adding px after the number produces the error. with out the px nothing happens when you enter a number.

 ![error001](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/7/f7ee5b1075b625ea7a04211d5ad934cb905b2ec4.jpeg)

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [July 27, 2024, 6:10pm UTC](https://forums.realmacsoftware.com/t/custom-image-size-not-working-as-expected/43917/2 "2024-07-27T18:10:03Z")

</div>

Ah yes, just try putting in 200 with out the px. The file size settings causes Elements to actually resize the physical file.

If you want to keep the original file size, but want to change the display size in the browser use the “display size” settings below.

When adding a value into the custom size box, it’s useful to remember that anything native css supports, Elements supports! So values like vh, px, rem, %, and css maths, should all work as expected. More [details in the manual](https://docs.realmacsoftware.com/elements-docs/user-guide/components/custom-css-values).

 ![CleanShot 2024-07-27 at 7 .08.37@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/1/7/17018d29f819d9bd38b1824ed7be6f10e3754d72.jpeg)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![klap](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/klap/32/25866_2.png) [@klap](https://forums.realmacsoftware.com/u/klap)\
**Post date:** [July 27, 2024, 6:31pm UTC](https://forums.realmacsoftware.com/t/custom-image-size-not-working-as-expected/43917/3 "2024-07-27T18:31:56Z")

</div>

Thank you Dan!
