flutter_image_editor icon indicating copy to clipboard operation
flutter_image_editor copied to clipboard

Android EditImage ClipOption not supported zoom image

Open LongXiangGuo opened this issue 4 years ago • 2 comments

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 avatar Aug 07 '20 08:08 LongXiangGuo

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

LongXiangGuo avatar Aug 07 '20 08:08 LongXiangGuo

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

CaiJingLong avatar Mar 02 '21 02:03 CaiJingLong