react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Cropper is not showing when multiple is set to true

Open shuhelkhan114 opened this issue 5 years ago • 10 comments

Version

  • react-native-image-crop-picker v0.25.2
  • react-native v0.65.1

Platform

  • Android

Expected behaviour

Show Cropper view when multiple is set to true

Actual behaviour

when multiple is set to false after picking image Cropper is showing but not when multiple is true

Steps to reproduce

just set

{
  multiple: true,
  cropping: true,
}

shuhelkhan114 avatar Feb 29 '20 10:02 shuhelkhan114

Same issue here !

abhi-nahi avatar Mar 06 '20 08:03 abhi-nahi

Same issue facing

PrashenAlumnus avatar Mar 31 '20 11:03 PrashenAlumnus

When the multiple is true the cropper frame doesn't show up.

hossein-zare avatar Apr 16 '20 19:04 hossein-zare

Same Issue

dhruv-toptal avatar May 07 '20 16:05 dhruv-toptal

I adjusted the package to enable cropping if the user selects only one image while multiple flag is true. I think this would be a better solution till we make a full solution to crop all images. If you find this a good idea, It would be my pleasure to make a PR with it.

abdelmagied94 avatar Jun 17 '20 16:06 abdelmagied94

Thanks for your support, for now, yes please make a PR. But I am looking forward to full solutions to crop all images.

shuhelkhan114 avatar Jun 18 '20 00:06 shuhelkhan114

Just to share my solution with the 0.25.3 release (as i'm on 0.60.x RN version) and can't wait for this fix:

ImagePicker.openPicker({
  ...imagePickerOptions,
  compressImageMaxWidth: 1000,
  compressImageMaxHeight: 1000,
  multiple: true,
  mediaType: 'photo',
}).then(async images => {
  const result = [];

  for (const image of images) {
    result.push(
      await ImagePicker.openCropper({
        path: image.path,
        width: 1000,
        height: 1000,
      })
    );
  }

   return result;
});

HPH

VincentCATILLON avatar Jul 22 '20 15:07 VincentCATILLON

https://github.com/ivpusic/react-native-image-crop-picker/issues/1344#issuecomment-687113083

myckhel avatar Sep 04 '20 12:09 myckhel

Any updates on this?

tastyqbit avatar Dec 26 '20 20:12 tastyqbit

Also interested in this feature

Mihai-github avatar Jul 10 '24 10:07 Mihai-github