@react-native-ohos/react-native-image-crop-picker 0.40.5-rc.6 → 0.40.5-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony/image_crop_picker/oh-package.json5 +1 -1
- package/harmony/image_crop_picker/src/main/ets/ImageCropPickerTurboModule.ts +7 -1
- package/harmony/image_crop_picker.har +0 -0
- package/package.json +1 -1
- package/react-native-ohos-react-native-image-crop-picker-0.40.5-rc.7.tgz +0 -0
- package/react-native-ohos-react-native-image-crop-picker-0.40.5-rc.6.tgz +0 -0
|
@@ -423,8 +423,8 @@ export class ImageCropPickerTurboModule extends TurboModule implements ImageCrop
|
|
|
423
423
|
results.size = length;
|
|
424
424
|
results.creationDate = stat.ctime + '';
|
|
425
425
|
results.modificationDate = stat.mtime + '';
|
|
426
|
-
results.path = this.isNullOrUndefined(tempFilePaths) ? null : filePrefix + value;
|
|
427
426
|
if (this.isImage(value)) {
|
|
427
|
+
results.path = this.isNullOrUndefined(tempFilePaths) ? null : filePrefix + value;
|
|
428
428
|
results.data = includeBase64 ? this.imageToBase64(value) : null;
|
|
429
429
|
results.mime = 'image/' + imageType;
|
|
430
430
|
Logger.info(`${TAG} into openPickerResult value : ${value}`);
|
|
@@ -443,6 +443,12 @@ export class ImageCropPickerTurboModule extends TurboModule implements ImageCrop
|
|
|
443
443
|
results.duration = null;
|
|
444
444
|
} else {
|
|
445
445
|
Logger.info(`${TAG} into getPickerResult video start`);
|
|
446
|
+
let qualityNumber = this.isNullOrUndefined(options.compressImageQuality) ? ImageQuality : options.compressImageQuality;
|
|
447
|
+
if(qualityNumber !== 1){
|
|
448
|
+
results.path = this.isNullOrUndefined(tempFilePaths) ? null : value;
|
|
449
|
+
} else {
|
|
450
|
+
results.path = this.isNullOrUndefined(tempFilePaths) ? null : filePrefix + value;
|
|
451
|
+
}
|
|
446
452
|
results.data = null;
|
|
447
453
|
results.mime = 'video/' + imageType;
|
|
448
454
|
let url = 'fd://' + file.fd;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|