Open mgvy91107 opened 5 years ago
@mgvy91107 Did you manage to find a fix for this? I currently have the same issue with a Samsung Galaxy J5 with Android 7.0
@janpio Do you have any info on this issue?
➕1️⃣
Please don't @ mention people that haven't posted in an issue before @allarddehaas.
@allarddehaas PR #331 fixed the issue for me, worth giving a try.
I installed and tested that PR but the bug persists. The property correctOrientation does nothing either. Until this is fixed, is there some kind of workaround I can use to fix the images? I searched this issue and the suggestions I encountered didn't work (like using JPG as the encodingType or setting allowEdit to true)
I'm still trying to find a fix for this. @mgvy91107 Could you resolve it? Or anyone else?
Hi, I'm still experiencing this issue, is there any news about it ? Any workaround ?
This isn't fixed. We had to release the app with this bug still occurring.
@leiamac Sad, but thx for the information.
I encounter the problem too and i have to fix it by setting the allowEdit
option to true which is not such a good solution though.
Anyone got any idea to resolve this?
I'm experiencing the same issue. I didn't try the PR but enabled the allowEdit
option as @pengkobe suggested.
This solves it for me. I was going to allow them to edit the photo anyway, so it turned out well for my use case.
Does anyone plan on fixing this or is this a feature not a bug? This was working for me then "broke" out of the blue. WHO EVER IS RESPONSIBLE GET OFF YOUR ASS!!!!!!!!!
This has been an issue going back to 2016/2017 WHO IS IN CHARGE OF FIXING THIS!!!
Yep also hitting this.
Lol also. Actually I'm having the same issue with MediaCapture as I'm using that to capture video.
Any news on this issue? I would use allowEdit: true
but the plugin documentation disencourages it because it's unpredictable.
use this property from CameraOptions :
correctOrientation: true
Hope it solves
Same issue here on Samsung fold was ok on android 7 but after updating to 9 the issue appear. i already set the correctOrientation: true
This issue is still on and nobody seems to care. Feels like the number of app using this plugin on Samsung phone is ridiculously low...
I am also hitting this issue. Interestingly, I only see this issue when .heic images are chosen, and on android.
Nice to meet you. I solved this problem. Please refer to the information below and modify the source code.
Use JPEG in the setOptions. function setOptions(srcType) { var options = { quality: 100, ... encodingType: Camera.EncodingType.JPEG, ... }
A simple modification of the source code is required. CameraLauncher.java 698
if (exifData != null && this.encodingType == JPEG) {
try {
//if (this.correctOrientation && this.orientationCorrected) { <---- BEFORE!!!
if (this.correctOrientation) { // <----- AFTER!!!
exifData.resetOrientation();
}
exifData.createOutFile(modifiedPath);
exifData.writeExifData();
exifData = null;
} catch (IOException e) {
e.printStackTrace();
}
}
My app was criticized for this problem o(TヘTo) URL : https://play.google.com/store/apps/details?id=io.cordova.seoulfilter
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;