Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[IMPROVEMENT] Improve image compression #1835

Merged
merged 6 commits into from Jul 2, 2018

Conversation

Sameesunkaria
Copy link
Collaborator

@Sameesunkaria Sameesunkaria commented Jun 26, 2018

@RocketChat/ios

The image compression is not performed based on pre-calculated heuristics. An estimated size of the image after compression is determined based on the heuristics. This information is then used to calculate the new dimensions of the image so that it fits under the size constraints defined by FileUpload_MaxFileSize.

The heuristics were based on the stats below:

Stats

Percentage size vs compression quality

screen shot 2018-06-26 at 6 47 58 pm

Percentage size vs percentage dimension

screen shot 2018-06-26 at 6 48 36 pm

Closes #1786

@rafaelks
Copy link
Contributor

@Sameesunkaria There's a test in PublicSettingsRequestSpec that needs to be updated.

@rafaelks rafaelks added this to the 3.0.0 milestone Jun 26, 2018
@rafaelks rafaelks added this to Desirable in Cycle 06: 06/05 ~ 06/27 via automation Jun 26, 2018
@rafaelks rafaelks moved this from Desirable to In Progress in Cycle 06: 06/05 ~ 06/27 Jun 26, 2018
@rafaelks rafaelks moved this from In Progress to In Review/QA in Cycle 06: 06/05 ~ 06/27 Jun 26, 2018
@rafaelks
Copy link
Contributor

rafaelks commented Jul 2, 2018

@Sameesunkaria Looking super good!!! :)

@rafaelks rafaelks merged commit 40b0f63 into RocketChat:develop Jul 2, 2018
Cycle 06: 06/05 ~ 06/27 automation moved this from In Review/QA to Done Jul 2, 2018
@Sameesunkaria Sameesunkaria deleted the bug-fixes branch August 31, 2018 12:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants