mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
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:
parent
c27725ce66
commit
bba8283d98
@ -577,6 +577,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
if (this.encodingType == JPEG) {
|
if (this.encodingType == JPEG) {
|
||||||
String exifPath;
|
String exifPath;
|
||||||
exifPath = uri.getPath();
|
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.createOutFile(exifPath);
|
||||||
exif.writeExifData();
|
exif.writeExifData();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user