Google Storage is extensively used to store static images to be served by different platforms. One of the needs of the modern-day digital world is to have images created for different form factors—desktop, mobile and tablet screens. In this recipe, we'll develop a Cloud Function to resize the images uploaded to a bucket:
Image resizing using Google Cloud Storage and Cloud Functions
Getting ready
The following are the initial setup verification steps to be carried out before the recipe can be executed:
- Create or select a GCP project
- Enable billing and enable the default APIs (some APIs such as BigQuery, storage, monitoring, and a few others are enabled automatically)
- Verify that Node.js and Google Cloud SDK are...