Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Adding compression to image data before storing in database #18

Open
arnabsen1729 opened this issue Jan 3, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@arnabsen1729
Copy link
Collaborator

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

@arnabsen1729 arnabsen1729 added enhancement New feature or request good first issue Good for newcomers labels Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant