https://kotlinlang.org logo
#compose
Title
# compose
j

Jasmin Fajkic

08/02/2022, 7:15 PM
Is there any way to get image orientation? I need to show image in original orientation so not sure is it possible to detect it?
k

Kirill Grouchnikov

08/03/2022, 1:10 AM
Like any random image? Or a photo taken on the current device?
j

Jasmin Fajkic

08/03/2022, 8:45 AM
Random image.
k

Kirill Grouchnikov

08/03/2022, 2:15 PM
Nothing to do with Compose then. I don’t think it’s a solvable problem in general. Maybe there’s some heuristics that can be employed for faces and “rooted” objects like trees or buildings, but you can’t solve all the cases. I would ask you a question - what is the “original” orientation for an arbitrary image?
2 Views