Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compress file image array byte using camera #99

Open
hafiz013 opened this issue Aug 8, 2024 · 1 comment
Open

How to compress file image array byte using camera #99

hafiz013 opened this issue Aug 8, 2024 · 1 comment
Labels
question Further information is requested

Comments

@hafiz013
Copy link

hafiz013 commented Aug 8, 2024

By the way this library has compression file when take singleImage like this:

singleImagePicker =
            rememberImagePickerLauncher(
                selectionMode = SelectionMode.Single,
                scope = coroutineScope,
                resizeOptions = ResizeOptions(compressionQuality = 0.5),
                onResult = { byteArrays ->
                    byteArrays.firstOrNull()?.let {
                        imageByteArray.value = it
                        image.value = it.toImageBitmap()
                    }
                },
            )

then how to compress image take picture?

@hafiz013
Copy link
Author

hafiz013 commented Aug 8, 2024

@shtolik

@onseok onseok added the question Further information is requested label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants