Amazon AWS has offered a Serverless Image Handler for a while that allows you to spin up an AWS Lambda function to create your own private little image transform service that is inexpensive, fast, and is fronted by the CloudFront content delivery network (CDN).
Whenever an image is uploaded to the bucket, a Lambda function processes it and creates all other required versions.
Under the hood it uses SharpJS, so you could always use their code to make it run on other Cloud Providers 😉
serverless-image-handler
Source Code (GitHub) →
Setting Up Your Own Image Transform Service →
Leave a comment