Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

Is there a way to add min and max aspect ratio

Open Jemrih opened this issue 6 years ago • 4 comments

Hello.

Is there a way to add a min and max aspect ratio? Because my goal is to let the user crop either as a square or as a rectangle.

If not. Is there plans for it in the future? Or should i try to solve it myself

Jemrih avatar Jul 05 '18 14:07 Jemrih

CropImage.activity() .setGuidelines(CropImageView.Guidelines.ON) .setActivityTitle(MY_CROP) .setCropShape(CropImageView.CropShape.RECTANGLE) .setCropMenuCropButtonTitle(DONE) .setRequestedSize(120, 120) .setMaxCropResultSize(AppConstants.MAX_CROP_RESULT_SIZE_MIN_WIDTH,MAX_CROP_RESULT_SIZE_MAX_HEIGHT) .setMinCropResultSize(MIN_CROP_RESULT_SIZE_MIN_WIDTH,MIN_CROP_RESULT_SIZE_MAX_HEIGHT) .setCropMenuCropButtonIcon(R.drawable.ic_crop).setFixAspectRatio(true) .start(ProfileUpdateActivity.this);

sivasankar0457 avatar Sep 12 '18 06:09 sivasankar0457

Hi is there a solution for this?

naoyamakino avatar Jan 08 '19 06:01 naoyamakino

+1, this is a reasonable requirement.

zxyufan avatar Jan 13 '20 13:01 zxyufan

Can I get square shape for this?

datxaban avatar Apr 18 '21 16:04 datxaban