Skip to content

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

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.

3 participants