Reputation: 41
Trying to convert HEIC images to JPEG
I am working with Firebase functions when a new image is uploaded to the Firebase Storage.
It works when I run a test function locally in the firebase emulator, but fails when I try to run it on my Firebase project.
I realised my emulator is using ImageMagick 7.0.9-7 but my Firebase instance is using ImageMagick 6.9.7-4.
How do I upgrade ImageMagick on my Firebase instance?
Upvotes: 3
Views: 1434
Reputation: 2002
Adding Frank van Puffelen's answer as community wiki to improve visibility:
As said in Frank's answer on this thread you can add your own modules by putting them in the same folder as your Cloud Function. In the thread there's a link to Firebase tutorial with sample code on image processing triggered by upload.
In the other link provided there is information about ffmpeg, which is a library with quite a lot of multimedia capabilities, and explanations on how to install it.
You may also take a look at how to manage dependencies in Firebase.
Upvotes: 0