Home > Back-end >  Is it possible to specify the SIZE of image requests from https://firebasestorage.googleapis.com/?
Is it possible to specify the SIZE of image requests from https://firebasestorage.googleapis.com/?

Time:01-12

When utilising Firebase Storage to store imagery, for example, user avatars, is there a way that you can request a smaller, thumbnail sized serving of the image?

I have searched Google and documentation and I have been unable to come up with a result. Currently my app utilising Firebase Storage URLs experiences a minor delay prior to loading images due to the fact that it I am requesting large images to fill tiny avatars.

Is there a resource I am overlooking that specifies the available parameters for this URL? (of which token & alt are two I'm aware of).

Thank you for the assistance in advance.

CodePudding user response:

Auto-resizing images upon read is not a feature of Firebase Storage. The typical solution is to create variants of the images during upload, for example through the Resize Images extension.

  •  Tags:  
  • Related