压缩比例改为100

This commit is contained in:
翟迪 2024-03-30 19:02:26 +08:00
parent 2c804cea55
commit f13d7c7aa4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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];