Usually, the image that have width > height is landscape and the width < height is portrait.
But for some reason, my Samsung Galaxy S6's image's W:H (taken by default camera app) is always landscape even though it's portrait.
Both landscape and portrait image's info shows 5312 x 2988. The portrait should be 2988 x 5312 but it's not, it shows 5312 x 2988 too.
That's why the input into my codes always recognizes the image as landscape.
There must be some other way to check it, because the portrait image is displayed correctly in gallery. If they use the W:H of the image then all images should've been displayed as landscaped.
Is there any other info within the image that can be used? Thank you for your time.