I am trying to save an image here but its getting rotated when its saved. The current code for this is like this :
filepath
is the path to a a vertical image (width < height)
using (Image img = Image.FromFile(filePath))
{
img.Save(savePath + Path.GetFileNameWithoutExtension(filePath) + ".bmp", ImageFormat.Bmp);
}
After the code is run, when I check the new image that is saved, it is rotated 90 degree counterclockwise. I am unable to understand this behaviour
Suggestions and guidance on how to prevent this would be appreciated.