CropperNoCropper icon indicating copy to clipboard operation
CropperNoCropper copied to clipboard

Cropped Bitmap also take black portion which is not part of Image .

Open iharshb opened this issue 6 years ago • 2 comments

CroppedBitmap also take black line which is not part of Image . How to remove that black portion

It happens with most potrait Images.

BitmapResult bitmapResult = ivSelectedImage.getCroppedBitmap();

           if (bitmapResult.getState() == CropState.SUCCESS) {
            bitmapResult.getBitmap();
             
           }

iharshb avatar May 11 '18 07:05 iharshb

What black part are you talking about? Can you provide a screenshot?

Are you talking about the added padding to make the image square? If so, you may use

cropper.setMakeSquare(false);

jayrambhia avatar May 14 '18 14:05 jayrambhia

cropper.setMakeSquare(false);

this function work closed this issue

Thank you!

vasanihardik avatar Feb 25 '20 13:02 vasanihardik