|
4 | 4 |
|
5 | 5 | **Description**: Use this extension to optimize and transform images via a powerful HTTP API with over 30 different image operations to enhance and manipulate your images.
|
6 | 6 |
|
7 |
| - |
8 |
| - |
9 | 7 | **Details**: Use this extension to optimize and transform images via a powerful HTTP API with over 30 different image operations to enhance and manipulate your images.
|
10 | 8 |
|
11 | 9 | This extension creates a Cloud Function named `process`, which can be called via a GET request, specifiying
|
@@ -45,37 +43,24 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan
|
45 | 43 | - Cloud Storage
|
46 | 44 | - Cloud Functions (Node.js 10+ runtime. [See FAQs](https://firebase.google.com/support/faq#extensions-pricing))
|
47 | 45 |
|
48 |
| - |
49 |
| - |
50 |
| - |
51 | 46 | **Configuration Parameters:**
|
52 | 47 |
|
53 |
| -* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations). |
54 |
| - |
55 |
| -* Cloud Storage bucket for images: The Cloud Storage bucket where images that are to be processed are located. API requests with input urls or paths that are not inside this bucket will be dropped. |
56 |
| - |
57 |
| - |
58 |
| -* Allowed CORS origins.: A comma delimited value of allowed CORS origins. Use the default of '*' to allow all origins. This is useful to lockdown your API and only allow your own website to embed the images directly. Note this will not prevent non-browser requests from accessing your API. |
59 |
| - |
| 48 | +- Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations). |
60 | 49 |
|
| 50 | +- Cloud Storage bucket for images: The Cloud Storage bucket where images that are to be processed are located. API requests with input urls or paths that are not inside this bucket will be dropped. |
61 | 51 |
|
| 52 | +- Allowed CORS origins.: A comma delimited value of allowed CORS origins. Use the default of '\*' to allow all origins. This is useful to lockdown your API and only allow your own website to embed the images directly. Note this will not prevent non-browser requests from accessing your API. |
62 | 53 |
|
63 | 54 | **Cloud Functions:**
|
64 | 55 |
|
65 |
| -* **handler:** Serves a API accepting incoming HTTP requests. |
66 |
| - |
67 |
| - |
| 56 | +- **handler:** Serves a API accepting incoming HTTP requests. |
68 | 57 |
|
69 | 58 | **APIs Used**:
|
70 | 59 |
|
71 |
| -* storage-component.googleapis.com (Reason: Needed to use Cloud Storage) |
72 |
| - |
73 |
| - |
| 60 | +- storage-component.googleapis.com (Reason: Needed to use Cloud Storage) |
74 | 61 |
|
75 | 62 | **Access Required**:
|
76 | 63 |
|
77 |
| - |
78 |
| - |
79 | 64 | This extension will operate with the following project IAM roles:
|
80 | 65 |
|
81 |
| -* storage.admin (Reason: Allows the extension to read images in Cloud Storage) |
| 66 | +- storage.admin (Reason: Allows the extension to read images in Cloud Storage) |
0 commit comments