There are instructions here as to how to upload files in Firebase. But the issue is how to resize images when we upload it in firebase from a webpage. I could not find any method in the Firebase API . And no need to paste any code here as well I think.
Shouldn't I try to resize it after I upload the image ? How to do that ?
There is no built-in way to resize an image in the Firebase Storage API. You will either need to resize it before uploading, or download the image in a server-script, resize it and then re-upload the resized image.
You can use firebase cloud function for this task.
I've written an module to resize image files uploaded into a specific folder
https://github.com/kriptontr/fireImgOptimizer
Related
Am trying to push an APK to the Google Play Store, and am having issues.
When am trying to upload images it is not accepting.
They mentioned like image format should be 24-bit PNG alpha.
How to convert images to this format?
Our Xamarin forms app supports both Android and IOS. This app uses a lot of png images on each and every screen.
We are looking for a better approach to deal with it. Whether to download a zip of png images and maintain them locally (or) download each png image on demand and cache it. It's ok if the application takes bit more time at the time of login. Could you please suggest.
I want to download an image from a url, save that image to local storage, and then display the stored image in an Image View. Is there a shared PCL library that can do all of this? If not, what would be the best approach for this using Dependency Services in iOS and Android?
Current Behavior:
I have build a PhoneGap application that takes photos using Camera and the upload to a server. User can see all the photos that are uploaded as thumbnails.
What I am trying to do:
I want that the user should be able to tap on a photo thumbnail and the selected photo should open in the default image viewer for iOS/Android. Also, user should be able to swipe the photo in the default image viewer to see additional photos. This behavior is similar to what Facebook or any other app implements.
I am not sure how this feature is implemented and I am surprised that there is no one who faced this problem.
Thanks for all the help
Try this:
I haven't checked it, but it should work fine.
My images should be cached so that they are not downloaded more than once.
They should only be updated if an image name is not currently stored locally.
How should an app cache images and use them locally without downloading again on BlackBerry?
Probably write your downloaded images to SDCard, then before redownload just check if the image is already present. However this could be not as simple as it may seem at a glance if you are new to file manipulation API on BlackBerry.