This is the Text to Image sample like Peing hosting on Google Cloud Functions.
Replace BUCKET_NAME
in index.js
to your Google Cloud Storage Bucket.
$ gcloud beta functions deploy imagemagick --trigger-http --source .
$ curl -X POST -H "Content-Type:application/json" -d '{"text":"Sample Text"}' YOUR_CLOUD_FUNCTIONS/imagemagick