# Good day help with scaling to desired scale

**URL:** <https://forums.solar2d.com/t/good-day-help-with-scaling-to-desired-scale/151259>\
**Category:** Newbie Questions\
**Created:** [February 20, 2020, 4:51am UTC](https://forums.solar2d.com/t/good-day-help-with-scaling-to-desired-scale/151259 "2020-02-20T04:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vonncc123](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/v/67e7ee/32.png) [@vonncc123](https://forums.solar2d.com/u/vonncc123)\
**Post date:** [February 20, 2020, 4:51am UTC](https://forums.solar2d.com/t/good-day-help-with-scaling-to-desired-scale/151259/1 "2020-02-20T04:51:52Z")

</div>

Good day can anyone help me, I want to achieve this kind of image, when the image size is above the desired width, I want to change the scale of the image to fit the desired width.

below is a sample desired output. I want it to scale rather than change it’s height and width.

1.) Over size image (red box)&nbsp; ![dPoZSd1.png](https://i.imgur.com/dPoZSd1.png)

1. Scaled image to fit the desired size which is the screen itself

![uJgap4E.png](https://i.imgur.com/uJgap4E.png)

---

<div class="post-metadata">

**Author:** ![roaminggamer](https://forums.solar2d.com/user_avatar/forums.solar2d.com/roaminggamer/32/134_2.png) [@roaminggamer](https://forums.solar2d.com/u/roaminggamer)\
**Post date:** [February 20, 2020, 5:00am UTC](https://forums.solar2d.com/t/good-day-help-with-scaling-to-desired-scale/151259/2 "2020-02-20T05:00:56Z")

</div>

Just scale the object by the value screenWidth/objectWidth

---

<div class="post-metadata">

**Author:** ![vonncc123](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/v/67e7ee/32.png) [@vonncc123](https://forums.solar2d.com/u/vonncc123)\
**Post date:** [February 20, 2020, 5:40am UTC](https://forums.solar2d.com/t/good-day-help-with-scaling-to-desired-scale/151259/3 "2020-02-20T05:40:21Z")

</div>

Real thanks my dude! 🙂
