Need to learn about set image size

I add Camera option in app. I want to do : After Capture image using CAMERA, I Want that user only allows upload image with size 500px X 200px.

Please Suggest me how to do it.

Maybe , help You

Or This

Add image component from kodular

After Picture is clicked, set image component height and width and use this extension to scale your image to your desired size