Phone orientation upside down?

MotoMusher

Active Member
Licensed User
Longtime User
So, I have a camera, and have to rotate the images. Some users are complaining when they hold their phone upside down (buttons at top in portrait, buttons to left in landscape), then the pictures turn out upside down.

I do the width > height to tell landscape vs portrait, but is there a way to tell if the phone is upside down so I can rotate the image 270 instead of 90?
 
Top