You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2017/02/02 20:10:57 UTC
cordova-plugin-camera git commit: CB-12005: Changing the
getOrientation method to return the defined enumerated EXIF instead of
orientation in degrees for Consistency
Repository: cordova-plugin-camera
Updated Branches:
refs/heads/master c27725ce6 -> bba8283d9
CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency
This closes #252
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/bba8283d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/bba8283d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/bba8283d
Branch: refs/heads/master
Commit: bba8283d98819273cab079007fb9e62c0d0e0dac
Parents: c27725c
Author: Joe Bowser <bo...@apache.org>
Authored: Tue Jan 31 15:29:56 2017 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Feb 2 12:10:42 2017 -0800
----------------------------------------------------------------------
src/android/CameraLauncher.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/bba8283d/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index 3970634..b10f40f 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -577,6 +577,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
if (this.encodingType == JPEG) {
String exifPath;
exifPath = uri.getPath();
+ //We just finished rotating it by an arbitrary orientation, just make sure it's normal
+ if(rotate != ExifInterface.ORIENTATION_NORMAL)
+ exif.resetOrientation();
exif.createOutFile(exifPath);
exif.writeExifData();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org