From 832d6e3beac70c88de8de415e74c42ac967ee61c Mon Sep 17 00:00:00 2001 From: swbradshaw Date: Thu, 12 May 2016 13:19:35 -0400 Subject: [PATCH] Adding missing function --- src/android/CameraLauncher.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index 760d90b..70ebef9 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -794,6 +794,17 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect } } + private int exifToDegrees(int exifOrientation) { + if (exifOrientation == ExifInterface.ORIENTATION_ROTATE_90) { + return 90; + } else if (exifOrientation == ExifInterface.ORIENTATION_ROTATE_180) { + return 180; + } else if (exifOrientation == ExifInterface.ORIENTATION_ROTATE_270) { + return 270; + } else { + return 0; + } + } /** * Write an inputstream to local disk