This Strapi upload provider stores your images to S3 after resizing and compressing
npm install strapi-provider-upload-aws-s3-custom-size
In your Strapi installation you now can use this provider in the settings for the File Upload extension. You need to provide your S3 api key and secret access token and provide a width and JPEG quality.