@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.
@@ -3,7 +3,7 @@
3
3
  "description": "Please describe the basic information.",
4
4
  main: 'index.ets',
5
5
  type: 'module',
6
- version: '0.40.5-rc.6',
6
+ version: '0.40.5-rc.7',
7
7
  dependencies: {
8
8
  "@rnoh/react-native-openharmony": "^0.72.38"
9
9
  },
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-image-crop-picker",
3
- "version": "0.40.5-rc.6",
3
+ "version": "0.40.5-rc.7",
4
4
  "description": "Select single or multiple images, with cropping option",
5
5
  "main": "js/index.js",
6
6
  "scripts": {