Skip to content

k-yomo/cloud_function_thumbnails_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Function Thumbnails Generator

License: MIT Go Report Card

  • GenerateThumbnails function will generate 100x100, 500x500, 1000x1000 thumbnails triggered by uploading image to the target bucket.
  • DeleteThumbnails function will delete generated thumbnails when original image gets deleted.

Deploy

  • GenerateThumbnails
cd functions/generate_thumbnails
gcloud functions deploy GenerateThumbnails --runtime go111 --trigger-resource BUCKET_NAME --trigger-event google.storage.object.finalize
  • DeleteThumbnails
cd functions/delete_thumbnails
gcloud functions deploy DeleteThumbnails --runtime go111 --trigger-resource BUCKET_NAME --trigger-event google.storage.object.delete

Example

Uploaded Image

Uploaded Image

Generated Thumbnails

  • 1000x1000

1000x1000

  • 500x500

500x500

  • 100x100

100x100

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages