Replies: 1 comment 2 replies
-
Hi @dosstx, The extension can publish a resize completion event which you can optionally enable when you install the extension (or by updating it if it is already installed). If you enable events, you can write custom event handlers that respond to these events. The event includes information about the resized/generated images. Event handler example: import { onCustomEventPublished } from "firebase-functions/v2/eventarc";
export const eventhandler = onCustomEventPublished(
"firebase.extensions.storage-resize-images.v1.complete",
(e) => {
// Handle extension event here.
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After resizing of image using the resize extension, is there a way to get the image's final width and height ?
I plan to use a dynamic image transformation service like Cloudinary to handle on the fly image transformation and resizing -- but I will use Firebase Storage as the media host. I will use the Firebase Image resizing extension to upload the image to storage and resize the original image to an efficient size for usage on Cloudinary (so users don't fill up my app's storage space quickly). But, in order to successfully use Cloudinary, I need to get the image's originally resized image. Is it possible to get that meta data from this extension?
Beta Was this translation helpful? Give feedback.
All reactions