Android - User Profile - Profile image behaviour is inconsistent

Description

When taking a picture on Android, the image is upright. When viewed on the server, it is rotated 90 degrees.

When uploading an image on the server, the image appears correctly on Android.

Acceptance Criteria:
Profile picture should appear upright on all platforms (different android devices and server). All following scenarios should be verified:

  • Change a profile picture by capturing photo from camera.

  • You can capture picture from any camera front or back and can capture in any camera direction upright, clockwise 90 (landscape), clockwise 180 or clockwise 270 (landscape) degrees.

  • You can also zoom in to the picture and crop it to required size, required picture should be produced after cropping in upright direction.

  • After successful cropping and loading of profile image on device, check on website; profile image should be upright there.

duplicate: https://openedx.atlassian.net/browse/MA-2078

Update:

1) Currently, by default any camera could be opened when user want to take profile picture from camera, depends on what camera user was using in camera app last time, we should force it to always open the front (selfie) camera.

2) When user change photo either by using 'Take photo' or 'Choose a photo' and crop & resize that photo, app still shows complete photo instead of showing the cropped photo on Edit profile screen/profile screen and user profile section in left drawer. However, it reloads and show the cropped photo when user tap on some other sections like 'My Courses' and come back on profile screen.

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Customer Problem Statement

None

Status

Assignee

Farhan Khan

Reporter

Christopher Lee

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Story Points

2

Epic Link

Sprint

None

Priority

Unset
Configure