cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject cordova-plugin-camera git commit: CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency
Date Thu, 02 Feb 2017 20:10:57 GMT
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 <bowserj@apache.org>
Authored: Tue Jan 31 15:29:56 2017 -0800
Committer: Joe Bowser <bowserj@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


Mime
View raw message