You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: storage-resize-images/PREINSTALL.md
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -16,19 +16,6 @@ The extension supports resizing images in `JPEG`, `PNG`, `WebP`, `GIF`, `AVIF` a
16
16
The extension can publish a resize completion event, which you can optionally enable when you install the extension. If you enable events, you can write custom event handlers that respond to these events. You can always enable or disable events later. Events will be emitted via Eventarc.
17
17
18
18
Furthermore, you can choose if you want to receive events upon the successful completion of the image resizing. Hence, you can do anything based on the event you will receive. For example, you can use [EventArc gen2 functions](https://firebase.google.com/docs/functions/custom-events#handle-events) to be triggered on events published by the extension.
19
-
### Example Event Handler for Successful Resize Operation
functions.logger.info("Resize Image is successful", event);
28
-
// Additional operations based on the event data can be performed here
29
-
returnPromise.resolve();
30
-
}
31
-
);
32
19
33
20
#### Detailed configuration information
34
21
@@ -50,6 +37,21 @@ You can install multiple instances of this extension for the same project to con
50
37
51
38
If events are enabled, and you want to create custom event handlers to respond to the events published by the extension, you must ensure that you have the appropriate [role/permissions](https://cloud.google.com/pubsub/docs/access-control#permissions_and_roles) to subscribe to Pub/Sub events.
52
39
40
+
#### Example Event Handler for Successful Resize Operation
41
+
Here is a an example of a custom event handler for events you can choose to emit from this extension:
Copy file name to clipboardExpand all lines: storage-resize-images/README.md
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,6 @@ The extension supports resizing images in `JPEG`, `PNG`, `WebP`, `GIF`, `AVIF` a
24
24
The extension can publish a resize completion event, which you can optionally enable when you install the extension. If you enable events, you can write custom event handlers that respond to these events. You can always enable or disable events later. Events will be emitted via Eventarc.
25
25
26
26
Furthermore, you can choose if you want to receive events upon the successful completion of the image resizing. Hence, you can do anything based on the event you will receive. For example, you can use [EventArc gen2 functions](https://firebase.google.com/docs/functions/custom-events#handle-events) to be triggered on events published by the extension.
27
-
### Example Event Handler for Successful Resize Operation
functions.logger.info("Resize Image is successful", event);
36
-
// Additional operations based on the event data can be performed here
37
-
returnPromise.resolve();
38
-
}
39
-
);
40
27
41
28
#### Detailed configuration information
42
29
@@ -58,6 +45,21 @@ You can install multiple instances of this extension for the same project to con
58
45
59
46
If events are enabled, and you want to create custom event handlers to respond to the events published by the extension, you must ensure that you have the appropriate [role/permissions](https://cloud.google.com/pubsub/docs/access-control#permissions_and_roles) to subscribe to Pub/Sub events.
60
47
48
+
#### Example Event Handler for Successful Resize Operation
49
+
Here is a an example of a custom event handler for events you can choose to emit from this extension:
0 commit comments