Android-Image-Cropper
Android-Image-Cropper copied to clipboard
Is there a way to add min and max aspect ratio
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
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);
Hi is there a solution for this?
+1, this is a reasonable requirement.
Can I get square shape for this?