How to automatically resize images with serverless

Link to chapter — https://serverless-stack.com/chapters/how-to-automatically-resize-images-with-serverless.html