From f13d7c7aa4faf123db32c4f54877e71bc57c539b Mon Sep 17 00:00:00 2001 From: zhaidi Date: Sat, 30 Mar 2024 19:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=AF=94=E4=BE=8B=E6=94=B9?= =?UTF-8?q?=E4=B8=BA100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/android/CameraLauncher.java | 2 +- src/ios/CDVCamera.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index 3916b2b..57c0988 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -154,7 +154,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect this.targetWidth = 0; this.encodingType = JPEG; this.mediaType = PICTURE; - this.mQuality = 50; + this.mQuality = 100; //Take the values from the arguments if they're not already defined (this is tricky) this.destType = args.getInt(1); diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index d4c084b..0f730e7 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -63,7 +63,7 @@ static NSString* toBase64(NSData* data) { { CDVPictureOptions* pictureOptions = [[CDVPictureOptions alloc] init]; - pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(50)]; + pictureOptions.quality = [command argumentAtIndex:0 withDefault:@(100)]; pictureOptions.destinationType = [[command argumentAtIndex:1 withDefault:@(DestinationTypeFileUri)] unsignedIntegerValue]; pictureOptions.sourceType = [[command argumentAtIndex:2 withDefault:@(UIImagePickerControllerSourceTypeCamera)] unsignedIntegerValue];