Image orientation

Soldato
Joined
24 Aug 2006
Posts
6,241
My jpeg image displays in the correct orientation in Windows 10. The Exif data shows as Rotated 270 Degrees.

In my MVC application I can upload the image, save it and then display it in view. In the view it's not displayed correctly.

Obviously don't want to hard code the CSS to the correct orientation. I can use transform: rotate(270 deg); to fix.

How is this best fixed, in CSS , JS or server side in C#? It must have been solved already.
 
Back
Top Bottom