Good day help with scaling to desired scale

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)  dPoZSd1.png

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

uJgap4E.png

Just scale the object by the value screenWidth/objectWidth

Real thanks my dude! :slight_smile: