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()