yhsang2 commented on issue #354:
URL:
https://github.com/apache/cordova-plugin-camera/issues/354#issuecomment-1712736923
Nice to meet you. I solved this problem.
Please refer to the information below.
1. Use JPEG in the setOptions.
function setOptions(srcType) {
var options = {
quality: 100,
...
encodingType: Camera.EncodingType.JPEG,
...
}
2. 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();
}
}
This is my app made with cordova.
URL : https://play.google.com/store/apps/details?id=io.cordova.seoulfilter
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]