Simple function to resize any uploaded images in Storage and create a thumbnail.
- Install Node
- Install Serverless
npm install serverless -g
- Clone the project
git clone https://github.com/uitnetwork/image-function.git
- Create a GCP project and change the configuration in gcp-config.yml
- Deploy
sls deploy
- Upload an image into the configured bucket
- In a few seconds, there will be a resized version uploaded in the same location