Is there any way to get image orientation? I need ...
# compose
j
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
Like any random image? Or a photo taken on the current device?
j
Random image.
k
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?