We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Hi @AzureStar123! Thanks for creating this issue!
I have sometimes experienced this issue on Samsung models, but I thought I deployed a fix for it.
Sorry, something went wrong.
I am using FileKit version 0.8.8
The issues are on Samsung Galaxy models, the s22 and a12.
I used this code to fix it for now:
actual fun getImageOrientation(image: PlatformFile): Int { val exif = ExifInterface(MyApplication.getContext().contentResolver.openInputStream(image.uri) ?: return 0) val orientation = exif.getAttributeInt( ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL ) return when (orientation) { ExifInterface.ORIENTATION_ROTATE_90 -> 90 ExifInterface.ORIENTATION_ROTATE_180 -> 180 ExifInterface.ORIENTATION_ROTATE_270 -> 270 ExifInterface.ORIENTATION_NORMAL -> 0 else -> 0 } }
I paired this with Modifier.rotate(), it would be great if this could be directly integrated into the library to handle the correct orientation.
Ok thanks for the info! I'll take a look.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: