functions-samples
functions-samples copied to clipboard
request a function sample which is greatly needed
For months, I've seen this repository with amazing functions, and I would like to request your Team to include a function that checks the position of the image (EXIF profile) before it is uploaded to the storage bucket, this is a very specific issue with iPhones and other iOS devices when taking a picture in portrait mode, the thumbnails generated with the thumbnails function, would obviously export the thumbnail in the wrong direction (landscape). This however, does not happen with an Android mobile phone.
Best regards.
Hi @inglesuniversal, we already have a sample that checks EXIF data: https://github.com/firebase/functions-samples/tree/master/exif-images
Is there specific behavior missing from it that you'd like to see added?
Hello @jhuleatt as a matter of fact I would like to request a feature that I haven't seen available. First it would be to auto-orient (using imagemagick) any photo taken by an iOS device and do so prior to storing the data on GCP (default project bucket), instead of doing the process afterwards, and second, while creating the thumbnails with the available plugin function, it would be really awesome to be able to extract from the EXIF data, the date the photo was taken and the location (City, State, Country) so it can be store on firebase firestore database to be used thereafter on the client app (thus avoiding the default naming from the iOS device (e.g. afas989-41234213.xadsfasdf.jpeg).
Best regards