Browse Source

Merge pull request #4 from trekforever/patch-3

update exif-images README
ll-addtest
Nicolas Garnier 8 years ago
committed by GitHub
parent
commit
16c622b2c1
  1. 4
      exif-images/README.md

4
exif-images/README.md

@ -5,7 +5,7 @@ This sample demonstrates how to automatically extract images metadata that are u
## Functions Code
See file [functions/index.js](functions/index.js) for the email sending code.
See file [functions/index.js](functions/index.js) for the code.
The image metadata is provided using ImagMagick `identify` tool which is installed by default on all Cloud Functions instances. This is a CLI for which we use a NodeJS wrapper. The image is first downloaded locally from the Firebase Storage bucket to the `tmp` folder using the [google-cloud](https://github.com/GoogleCloudPlatform/google-cloud-node) SDK.
@ -19,7 +19,7 @@ The function triggers on upload of any file to your Firebase project default Clo
## Storage and Database Structure
Users Upload an image to Firebase Storage to the path `/<timestamp>/<filename>` and in return the Function will write to the `/<timestamp>/<filename>` path in the database. The filename typically contains illegal characters for a Firebase Realtime Database keys (such as `.`) so we're replacing all these by the `*` character.
Users upload an image to Firebase Storage to the path `/<timestamp>/<filename>` and in return the Function will write to the `/<timestamp>/<filename>` path in the database. The filename typically contains illegal characters for a Firebase Realtime Database keys (such as `.`) so we're replacing all these by the `*` character.
For example the metadata for the file at path `/1477402116302/mypic.jpg` will be written to the corresponding Database path `/1477402116302/mypic*jpg`

Loading…
Cancel
Save