okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
331 stars 44 forks source link

Compress images before uploading them #2411

Open taoeffect opened 1 week ago

taoeffect commented 1 week ago

Problem

Images taken by modern phones can be huge, ranging from 5MB to 10MB or even more.

This causes these problems:

There is no reason for us to upload these massive images in their entirety to the server when they're attached.

Solution

Similar to how Signal works when uploading an image, find a way to compress the image by reducing its size so that it remains under a specific file size while keeping the quality of the image high.

For example, you could compress images so that they're no larger than 400KB.

SebinSong commented 3 days ago

[References for study]