Image quality is very low after capture with camera in jetpack compose

514 Views Asked by At

I am making this camera app where I take the picture and upload to server. But after captured image that I am getting very low quality. Can we specify the image quality here?

val cameraLauncher = rememberLauncherForActivityResult(
        contract = ActivityResultContracts.TakePicturePreview()
    ) { bitmap  ->
        val file = ImageConverter.bitmapToFile(context,bitmap)
        onResultCamera(bitmap, file)
    }

To launch camera

cameraLauncher.launch()
0

There are 0 best solutions below