peekaboo icon indicating copy to clipboard operation
peekaboo copied to clipboard

Fix iOS images orientation

Open YahiaAngelo opened this issue 1 year ago • 0 comments

Fixing iOS image orientation when you add ResizeOptions.

To Reproduce:

rememberImagePickerLauncher(
            selectionMode = SelectionMode.Single,
            scope = scope,
            resizeOptions = ResizeOptions(
                width = 4080,
                height = 4080,
                resizeThresholdBytes = 40 * 1024 * 1024L,
                compressionQuality = 1.0
            ),
            onResult = { byteArrays ->
                byteArrays.firstOrNull()?.let {
                    images = listOf(it.toImageBitmap())
                }
            },
        )

And select a vertical image taken with an iPhone camera.

YahiaAngelo avatar Nov 22 '24 23:11 YahiaAngelo