Open sajjadroudi opened 2 years ago
Hi there,
you can use below code to custom crop , cropping with user hand.
UCrop.Options options = new UCrop.Options(); options.setCompressionFormat(Bitmap.CompressFormat.JPEG); options.setCompressionQuality(100); options.setFreeStyleCropEnabled(true); options.setShowCropGrid(true); options.setHideBottomControls(true);
UCrop uCrop = UCrop .of(uri, Uri.fromFile(new File(this.getTmpDir(this), UUID.randomUUID().toString() + ".jpg"))) .withOptions(options);
uCrop.start(this);
Same question
Most of the apps support cropping using sides (red areas marked in below picture) in addition to corners. It will be so great if you add this feature.