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