Converting images in a web application

I am looking for a good and efficient solution to reformat, crop to aspect ratio and resize an image in a web application. I would like that when the user uploads a file, the image is first resized and then saved. At the moment, when a file is selected, it is first saved and then it is resized in the backend using the Image module, the problem is that this takes a very long time. Is there a better solution?

There is no other option for web application to resize in-browser. We have squoosh lib integration in our roadmap to let users resize and convert images in-browser.

No ETA yet, but we can check with our team when we can ship it into release.