You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
to create a thumbnail we are using cloudfunctions and change the photourl
`// Import functions and GCS
const os = require("os");
const path = require("path");
// GCS for Image Compression Feature
const spawn = require("child-process-promise").spawn;
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require("firebase-functions");
const admin = require("firebase-admin");
const UUID4 = require("uuid-v4");
const uuid = UUID4();
try {
admin.initializeApp();
} catch (e) {
console.log(e);
}
exports = module.exports = functions.storage
.object()
.onFinalize(async object => {
const bucket = object.bucket;
const contentType = object.contentType;
const filePath = object.name;
});
`
probably this could gelp someone to save some KBs
The text was updated successfully, but these errors were encountered: