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

Support wider aspect ratios #9

Merged
merged 1 commit into from May 16, 2017
Merged

Conversation

quozl
Copy link
Contributor

@quozl quozl commented Aug 16, 2016

Displays with wider aspect ratios of 16:9 gave squashed thumbnails and photograph views, because the activity assumed a 4:3 aspect ratio.

When a photograph was taken, the thumbnail image was shown squashed, people were tall and thin. When a photograph was selected from the tray, the same effect was shown in the media view. The live camera view was also smaller than it could be.

Fix is to;

  • detect the display aspect ratio, and use it for sizing the media view widget, and;
  • detect the camera aspect ratio, and trim sides of image to fit our 4:3 thumbnail SVG template.

Fixes most but not all of https://bugs.sugarlabs.org/ticket/4860

Tested on

  • OLPC XO-4 (aspect ratio 4:3, Fedora 18), and;
  • OLPC XO laptop SKU400 (aspect ratio 16:9, Ubuntu 16.04).

Displays with wider aspect ratios of 16:9 gave squashed thumbnails and
photograph views, because the activity assumed a 4:3 aspect ratio.

When a photograph was taken, the thumbnail image was shown squashed,
people were tall and thin.  When a photograph was selected from the
tray, the same effect was shown in the media view.  The live camera view
was also smaller than it could be.

Fix is to;

- detect the display aspect ratio, and use it for sizing the media view
  widget, and;

- detect the camera aspect ratio, and trim sides of image to fit our 4:3
  thumbnail SVG template.

Fixes most but not all of https://bugs.sugarlabs.org/ticket/4860
@quozl
Copy link
Contributor Author

quozl commented Apr 10, 2017

Rebased against master.

@quozl quozl merged commit 5234e86 into sugarlabs:master May 16, 2017
@quozl quozl deleted the 2016-229-aspect-ratio branch May 16, 2017 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant