Skip to content

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

@arnabsen1729

Description

@arnabsen1729

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions