apache / apache/cordova-plugin-camera
Cordova camera doesn't rotate the pic to correct orientation on Samsung phones
- Dominant language
- Objective-C
- Stars
- 976
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys, I'm building Cordova 8.0 on a Samsung cell phone with Android 5.1. I'm using cordova.pluging.camera to take a photo and upload it to a server, and then present it in an app. But the photo is uploaded to the server rotated 90 degrees and so is displayed in the application. I have tried to modify the correctOrientation option but I can not make it work. I need help to correctly configure this option, I am new to mobile application development.
Camera.js
var correctOrientation = !!options.correctOrientation;
Contributor guide
Research direction
Start with Camera.js and the `correctOrientation` option shown in the issue, then reproduce the upload flow on a Samsung phone running Android 5.1. Done means the captured image reaches the server and is displayed with the correct orientation; the issue does not name a test or another implementation file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100