Open p42rthicle opened 9 months ago
the same
Try this
var cropImageContractOptions = CropImageContractOptions(uri,CropImageOptions(imageSourceIncludeGallery = true,imageSourceIncludeCamera= true));
cropImageLauncher.launch(cropImageContractOptions);
cropImage.launch( options(uri = imageUri) { setGuidelines(Guidelines.ON) setOutputCompressFormat(CompressFormat.PNG) } )
Can't import these things
What is the replacement for it in the 4.5.0 version?
Hey I have just found the solution. Drop a ❣️ if i helped you.
cropImage.launch( CropImageContractOptions( uri = uri, cropImageOptions = CropImageOptions( guidelines = CropImageView.Guidelines.ON, outputCompressFormat = Bitmap.CompressFormat.PNG, outputCompressQuality = 50, fixAspectRatio = true, aspectRatioX = 1, aspectRatioY= 1, ) ) )
Can't import the options block here from com.canhub.cropper.options
What is the replacement for it in 4.5.0 version?