How do you restrict user image size upload inside the app?

Test the size of the image

size extension removed

Nope, I just re-read.

Use an image extension that provides the image height and width. There are a couple out there.

https://puravidaapps.com/image.php

https://metricrat-hosting.web.app/#14