From bba8283d98819273cab079007fb9e62c0d0e0dac Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 31 Jan 2017 15:29:56 -0800 Subject: [PATCH] CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency This closes #252 --- src/android/CameraLauncher.java | 3 +++ 1 file changed, 3 insertions(+) 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(); }