Greenstand / treetracker-ios

IOS version of the Treetracker
GNU Affero General Public License v3.0
16 stars 42 forks source link

As a user, I want to upload a smaller size tree image, so that my uploads are quicker and use less data #62

Closed AlexCornforth closed 2 years ago

AlexCornforth commented 3 years ago

As a user, I want to upload a smaller size image, so that my uploads are quicker and use less data

Acceptance Criteria: Are the tree images we upload compressed

Solution Guidence: Check with android what the current size we upload is.

Note from @ZavenArra : "We are also talking about having a parameter to upload a full quality image or less reduced quality image every so often, to aid in the digital herbarium project that Cam is doing for Greenstand" - Could be worth factoring this in when thinking about this.

AlexCornforth commented 3 years ago

Quick and dirty solution to this could be to simply reduce the compression quality when we convert to jpeg

jpegData(compressionQuality: 1.0)

Could drop to something sensible (0 is lowest 1 is best) may be worth dropping it, trying an upload, chaeck the quality and size in S3 or the Admin Panel.