Adding missing function

This commit is contained in:
swbradshaw 2016-05-12 13:19:35 -04:00
parent f2b4eeded0
commit 832d6e3bea

View File

@ -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