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

Activity

Show:
Mirza Mubashar Baig
April 14, 2017, 7:50 AM

Verified.

Farhan Khan
April 13, 2017, 2:35 PM

Our of memory crash fixed, ready for QA.

Mirza Mubashar Baig
April 12, 2017, 10:17 AM

One crash is occurring quite frequently. Below are the attached logs in sequence:

Farhan Khan
April 11, 2017, 6:51 PM

Ready for QA

Farhan Khan
March 20, 2017, 9:08 AM

Ready for QA.

Fixed

Assignee

Farhan Khan

Reporter

Christopher Lee

Customer

None

URL

None

Groups with Read-Only Access

None

Actual Points

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Contributor Name

None

Blended Project Status Page

None

edX Squad

None

Product Rollout Framework

None

Content & Partner Success Lead

None

Marketing Lead

None

Learning Lead

None

Support Lead

None

Story Points

2

Epic Link

Sprint

None

Priority

Unset