Compress the Image size before uploading to Library control

Hello guys,
can we somehow handle "fileUpload" event and automatically reduce the size of the image? Users will be adding new photos from their cell phones and you can imagine the size of the 4K image. Not necessary for the application.

Is there any way how to achieve it?

Thank you
Kind regards
Stepan

Dear @StepanS,
This most likely will require a Power Automate flow, which will either track changes or run on an interval, and re-size the images for you.