Drjacky / ImagePicker

📸Image Picker for Android, Pick images from Gallery or Capture a new image with Camera🖼
https://github.com/Drjacky/ImagePicker
Apache License 2.0
230 stars 57 forks source link

[Crash] When picking a camera image without setting crop() #96

Open ZahraHeydari opened 1 year ago

ZahraHeydari commented 1 year ago

This happens when removing crop() from picking camera image.

fun pickCameraImage(view: View) {
        cameraLauncher.launch(
            ImagePicker.with(this)
                //.crop()
                .cameraOnly()
                .maxResultSize(1080, 1920, true)
                .createIntent()
        )
}
Screenshot 2023-05-08 at 11 55 05 PM
hgarciaalberto commented 7 months ago

That happened to me due to .maxResultSize, can you check deleting that?