Description
Using some compression before storing the images in the database. Since we are using base64 encoding for the image, the length increases by approximately 30-35% but using some kind of compression, like gzip can reduce the inflation to 2-10%. This can be a minor improvement in fetching the data from the Firebase database.
Here I have written a short script to check the compression percentage.
https://gist.github.com/arnabsen1729/833df5001e14206d0340925bdd731708
Description
Using some compression before storing the images in the database. Since we are using base64 encoding for the image, the length increases by approximately 30-35% but using some kind of compression, like
gzipcan reduce the inflation to2-10%. This can be a minor improvement in fetching the data from the Firebase database.Here I have written a short script to check the compression percentage.
https://gist.github.com/arnabsen1729/833df5001e14206d0340925bdd731708