Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.85k stars 2.15k forks source link

Image quality issue #853

Open SujithManjavana opened 2 years ago

SujithManjavana commented 2 years ago

The quality of the cropped image is very low compared to the original. Lib version: 'com.github.yalantis:ucrop:2.2.6-native'

val destUri = Uri.fromFile(File(cacheDir, "dp.jpg")) val options = UCrop.Options() options.setCompressionFormat(Bitmap.CompressFormat.JPEG); options.setCompressionQuality(100) val cropIntent = UCrop.of(uri, destUri) .withOptions(options) .withAspectRatio(1F, 1F) .withMaxResultSize(512, 512) .getIntent(this) uCropResultLauncher.launch(cropIntent)