Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale and compress large images #132

Closed
liliakai opened this issue Jan 16, 2015 · 1 comment
Closed

Scale and compress large images #132

liliakai opened this issue Jan 16, 2015 · 1 comment
Milestone

Comments

@liliakai
Copy link
Contributor

Apply the following rules (taken from the android client), targeting a max file size of 420KB

  • Limit dimensions to 1920 max in both height and width, maintaining aspect ratio
  • Compress to 95 (JPEG quality scale)
  • If not, within size constraints, set quality to the max of (quality * maxSize / previousSize) and 50, repeating at most 4 different times.
  • If image is still not within bounds, fail.
@liliakai liliakai modified the milestones: 0.2, On the roadmap, MVP Feb 12, 2015
@liliakai liliakai modified the milestones: MVP, Real soon now Feb 27, 2015
@liliakai
Copy link
Contributor Author

liliakai commented Mar 5, 2015

Implemented in 8bc77fa

@liliakai liliakai closed this as completed Mar 5, 2015
CarlosSantos95 pushed a commit to ra-app/desktop that referenced this issue Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant