<Uri to scaled Bitmap Kotlin code displays the ima...
# stackoverflow
u
Uri to scaled Bitmap Kotlin code displays the image rotated on its side I have Kotlin code that scales down the Uri image to a Bitmap and back to a Uri. Although the code successfully scales the image, it displays it rotated onto its side. What could be wrong with the code? Composable LaunchedEffect(key1 = "tobitmaps") { uriResult.value = resizeImage( context, viewModel.state.value.imageUri ) } uriResult.value?.let { imageUri -> AsyncImage( imageUri, contentDescription = null, modifier =...