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

#96 Fix picking camera image without cropping #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZahraHeydari
Copy link

Applied changes below:

  • Fix picking camera image without cropping
  • Fix displaying the captured image

@rahulhundekari
Copy link

@Drjacky Can you please let know when this changes will be merged in the source. Changes looks correct for me.

Copy link
Owner

@Drjacky Drjacky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A Q

@@ -140,7 +140,7 @@ class MainActivity : AppCompatActivity() {
fun pickCameraImage(view: View) {
cameraLauncher.launch(
ImagePicker.with(this)
.crop()
//.crop()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why's that?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I see that's because of #96

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but what if someone wants to crop the camera image?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no problem. It's optional. Both with or without crop are handled.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the issue is not with the crop itself as the titles say: #96 Fix picking camera image without cropping & [Crash] When picking a camera image without setting crop()

The improvement is here, right?

mImageUri?.path?.let { path ->
                File(path).delete()
            }
            it.delete() //Why uncommented BTW?

mImageUri?.path?.let { path ->
File(path).delete()
}
it.delete()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was commented

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

Successfully merging this pull request may close these issues.

None yet

3 participants