Test for correctOrientation not rotate=0

when determining if we are in the special case where the image should just be retureturned to the user without modification.
This commit is contained in:
Simon MacDonald 2013-01-08 15:21:51 -05:00
parent 5f6824e5dd
commit 26effd1def

View File

@ -322,7 +322,8 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
}
// If all this is true we shouldn't compress the image.
if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 && rotate == 0) {
if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 &&
!this.correctOrientation) {
writeUncompressedImage(uri);
this.callbackContext.success(uri.toString());