Check orientation of profile image
What does this MR do?
Fix those cases when the user chooses a image for his/her profile and that image has EXIF orientation information that usually come from cameras. It happened here #31187 (moved) with @bholtcamp. At first, I thought I would need to read the EXIF data and rotate the image by myself before sending it to cropper.js
, but then I found out this was reported as a bug there since 2014, so they did something to help users, as you can read in README.
Are there points in the code the reviewer needs to double check?
It is a simple change that just configure cropper.js
, but I'm a little worried with rotatable: true
.
Why was this MR needed?
Depending on the camera you have, if you ever take a picture in portrait mode, the image ends up rotated with an EXIF information about its orientation, so image readers can use this data to draw the image correctly.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together