When users uploads an image to your servers it adds a lot of cost in term of banwidth, computer power memory and electricity.

If you instead let the users pay for it by resizing the image before they upload it.. then you remove all your cost.

Do you have high cost? Do you need to limit the file upload size?

No need! Use my script on your webpage or in your mobile app.

Link: https://jsfiddle.net/davidohlund/kzrtou12/