CB-12005: Changing the getOrientation method to return the defined enumerated EXIF instead of orientation in degrees for Consistency

This closes #252
This commit is contained in:
Joe Bowser 2017-01-31 15:29:56 -08:00
parent c27725ce66
commit bba8283d98

View File

@ -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();
}