Feature request: set the maximum size for uploaded images


I'd like to suggest a feature to set the maximum size for the uploaded images. So if I set the maximum width to 1200 px and the user wants to upload a 4096 px width image, it will resize it first and than it will smush it.

This would be a very useful feature. (I have seen this feature in Imagify)

Thank you!