diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index fc2df33..ce40b0b 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -346,7 +346,7 @@ static NSString* toBase64(NSData* data) { break; case EncodingTypeJPEG: { - if ((options.allowsEditing == NO) && (options.targetSize.width <= 0) && (options.targetSize.height <= 0) && (options.correctOrientation == NO)){ + if ((options.allowsEditing == NO) && (options.targetSize.width <= 0) && (options.targetSize.height <= 0) && (options.correctOrientation == NO) && (([options.quality integerValue] == 100) || (options.sourceType != UIImagePickerControllerSourceTypeCamera))){ // use image unedited as requested , don't resize data = UIImageJPEGRepresentation(image, 1.0); } else {