Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android EditImage ClipOption not supported zoom image #49

Open
LongXiangGuo opened this issue Aug 7, 2020 · 2 comments
Open

Android EditImage ClipOption not supported zoom image #49

LongXiangGuo opened this issue Aug 7, 2020 · 2 comments

Comments

@LongXiangGuo
Copy link

While zoom the image to a larger proportion, crop image error, a platform exception thrown. (iOS is ok)
Error info
image

Could crop image:
IMG_1877

Could not crop image:
IMG_1876

code:

 final editOptions = ImageEditorOption();

      editOptions.addOption(
        ClipOption.fromRect(
          imageToCrop.cropSection,
        ),
      );

      editOptions.addOption(
        ScaleOption(570, 570),
      );

      editOptions.addOption(
        ClipOption(width: 500, height: 500),
        newGroup: true,
      );

      final croppedImage = await ImageEditor.editImage(
        image: imageToCrop.imageBytes,
        imageEditorOption: editOptions,
      );
@LongXiangGuo
Copy link
Author

width & height is conflict with the zoom actions on android platform, I have remove the ClipOption Temporary fixed it.

@CaiJingLong
Copy link
Member

Sorry for a long time no reply, do you mean you need to use this library to enlarge your pictures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants