Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original image saved in gallery when launching Crop activity #867

Open
kumulonimbus91 opened this issue Feb 5, 2022 · 1 comment
Open

Comments

@kumulonimbus91
Copy link

I am experiencing one weird thing while using ArthurHub/Android-Image-Cropper, everything works fine, the image is sent to crop activity and cropped image is retrieved to ImageView. However, when I press crop button to launch Crop Activity the original image is saved in the gallery by itself. Please help.

Here is the code:

mBinding.btnCrop.setOnClickListener {
filteredBM.value?.let {

        val uri = getImageUri(this, it)
        imageUri = uri

     CropImage.activity(imageUri)
         .start(this)





    }


} 

So the image is already in the image view when launching crop activity. In onActivityResult I put the cropped image into that image view and everything works fine except for that original image being saved in the gallery.

@Canato
Copy link

Canato commented Feb 7, 2022

please read #858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants