uCrop icon indicating copy to clipboard operation
uCrop copied to clipboard

Cropping using sides in addition to corners

Open sajjadroudi opened this issue 2 years ago • 2 comments

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.

photo_2022-04-04_12-17-24

sajjadroudi avatar Apr 04 '22 07:04 sajjadroudi

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

SarithaSai2020 avatar May 20 '22 10:05 SarithaSai2020

Same question

Selina592732122 avatar Aug 15 '22 02:08 Selina592732122