I have a file entry control on a page to select an image. When the user selects an image, I display the image on the page.
But my problem is that when the user selects a vertical or portrait image, it is displayed in landscape mode.
So, how can I determine the orientation of the image and apply the correct CSS to display in landscape or portrait view.
source share