ggunti / react-native-amazing-cropper

Image cropper for react native using Animated API
MIT License
145 stars 83 forks source link

ExifInterface only supports saving attributes on JPEG formats - Android only #33

Closed sergiulucaci closed 4 years ago

sergiulucaci commented 4 years ago

Whenever I try to crop an image from Android Gallery's emulator - (I am using Genymotion; though, on real device it seems to work) I get this:

ExifInterface only supports saving attributes on JPEG formats.

Any idea?

ggunti commented 4 years ago

I will check it. It is a warning or an error message?

sergiulucaci commented 4 years ago

No red screen, just a console warning, but onDone handler is never called.

Edited

Screenshot 2020-05-15 14 48 59

This is how it looks like. Flow:

  1. open gallery and choose image from Genymotion's emulator
  2. put the image uri into AmazingCropper
  3. crop the image and press "Done"
  4. nothing happens
ggunti commented 4 years ago

It does not happen to me.

I added an image to emulator gallery:

Captură de ecran din 2020-05-15 la 20 23 04

Then, I used it as the cropper uri:

      <AmazingCropper
        onDone={this.onDone}
        onCancel={this.onCancel}
        imageUri='file:///storage/emulated/0/Download/shoot.png'
        imageWidth={436}
        imageHeight={714}
        NOT_SELECTED_AREA_OPACITY={0.3}
        BORDER_WIDTH={20}
      />
Captură de ecran din 2020-05-15 la 20 31 39

After that, I pressed the Done button and onDone was invoked as it should:

Captură de ecran din 2020-05-15 la 20 34 42

I added onError handler, you could use it to find what's the problem in your case.