I was wondering is there any way to detect the orientation property of an image retrieved using media.selectphoto ?
On iOS every image is 4:3 aspect ratio. If I understand correctly, portrait images are rotated by 90 degrees.
When the image is shown on screen, the OS rotates it back to upright position.
So is there any way to know whether the image is in portrait or landscape mode? I tried using contentwidth and contentheight to no avail because both portrait and landscape images are stored using same width x height, unless I am missing something ?
Any help is appreciated, Thank you.