Skip to content

Crop is not working well when called multiple times on iOS #8

@iuricernov

Description

@iuricernov

I found this issue in an app I'm doing, where the first screen is to take a photo and crop the image using the lib, and the second one is to show the cropped photo.
When user taps to go back and then click to crop again, the resulting image looks like it is cropped even more. It is not happening in Android.

A simple way to reproduce it is:

const _cropImage = async () => {
  await scanner.current.cropImage();
  const result = await scanner.current.cropImage(); // Called twice
  // Use result.image
}

From the code above, the cropped image will not match in iOS, but will in Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions