I am using Google Cloud Functions to
- Download a video from Google Cloud Storage Bucket
- Overlay that video with some text
- Upload the processed video back to Google Cloud Storage Bucket.
I am using Python MoviePy module. When running the script I get the error.
OSError: convert-im6.q16: not authorized
This is because of Image Magick Policy.xml file which has this line (that I need to comment out).
<policy domain="path" rights="none" pattern="@*"/>
Locally on docker, this works fine. When I upload it to the Cloud Function service, the error occurs when the function runs.
If I comment out the policy line locally on docker, I get the same error.
How can I update the policy.xml to
<policy domain="path" rights="read|write" pattern="@*"/>
OR
Include an override xml for this particular policy.
Google Cloud Function doesn't have/allow access to the OS.
Any thoughts?