There are other Saas services for that, like https://www.imgix.com/. Not sure if this plays well with S3 out of the box though
Using various query params, you can then control a bunch of transformations to the images that are applied on the fly when requested.