Running this code on the attached image using Aspose.Imaging for .NET 20.5 : input.jpg (2.4 MB)
var img = Aspose.Imaging.Image.Load("input.jpg"); Console.WriteLine("Width: " + img. Console.WriteLine("Height: " + img.Height);
gives the following output:
Width: 3648 Height: 2736
However, when viewing the image in a graphics viewer (such as Irfanview) or browser, its dimensions are swapped: Width = 2736, Height = 3648.
Can you please advise how to get the correct dimensions. If the image is auto-rotating, is there a flag to show the orientation?