Skip to content

pozible/image-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@pozible/image-processor

Listening to new objects added to GCS and properly resize images based on given dimensions if needed.

This package is specifically prepared to be deployed on GCF using Pub/Sub triggers. It works hand in hand with @pozible/signed-upload to prepare the metadata and upload the file to GCS bucket.

Usage

Write index.js as follows:

exports.service = require('@pozible/image-processor').default;

Then deploy with:

gcloud beta functions deploy image-processor --entry-point=service --source . --memory=256MB --trigger-bucket <bucket-name> --runtime nodejs10

About

Process images uploaded to GCS bucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published