PullDating / FlutterApplication

The frontend flutter application, contains code for IOS, Android and web
GNU Affero General Public License v3.0
3 stars 1 forks source link

Compress Photos #7

Closed WilliamDormer closed 2 years ago

WilliamDormer commented 2 years ago

There should be functionality for the user to compress a photo on-device before uploading it to the database. It should be done prior to uploading.

Compressing before transit reduces the total costs associated with internet traffic, as well as reducing the storage costs for the photos.

Will need to figure out how to deal with the different file formats, including apple's new wacky one.

ethanblake4 commented 2 years ago

HEIC images (eg "Apple's wacky format") are apparently supported in Android starting with Android 10. If we opt to only support Android 10+, we should probably use HEIC. Otherwise, WebP is a good choice.

WilliamDormer commented 2 years ago

done. when uploading to profile it sends them in webp format. (heic was sketchy with the library I used)