@pozible/image-processor
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @pozible/image-processor

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

8.36 kB

Total Files

12

Last publish

Collaborators

  • spondbob