jayrambhia / CropperNoCropper

Instagram Style Image Cropper for Android (Library)
http://www.jayrambhia.com/project/nocropper-library
Apache License 2.0
475 stars 99 forks source link

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

Open iharshb opened 6 years ago

iharshb commented 6 years ago

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();

            }
jayrambhia commented 6 years ago

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);
vasanihardik commented 4 years ago

cropper.setMakeSquare(false);

this function work closed this issue

Thank you!