[C#] Loaded thumbnails not rotated even if large image is.
I'm writing a program where I have to load the thumbnails images first before proccessing them.


            img = Image.FromFile(file_path);

            int img_w = img.Width;
            int img_h = img.Height;

            int desired_size = 150;

            int img_h1 = desired_size;
            double resize = (double)img_h / (double)img_w;
            resize = (double)desired_size * resize;
            img_h1 = (int)resize;

            thumb = img.GetThumbnailImage(desired_size, img_h1, null, IntPtr.Zero);

This code loads an image and then create a thumbnail.

Some of the photos taken by camera was rotated so i rotated them bo 90degrees in IrfanView. Even so thumbnails loaded in my c# app are still rotated wrong (large image is ok).

How to walk around this problem?

[C#] Loaded thumbnails not rotated even if large image is.
===

I'm writing a program where I have to load the thumbnails images first before proccessing them.


            img = Image.FromFile(file_path);

            int img_w = img.Width;
            int img_h = img.Height;

            int desired_size = 150;

            int img_h1 = desired_size;
            double resize = (double)img_h / (double)img_w;
            resize = (double)desired_size * resize;
            img_h1 = (int)resize;

            thumb = img.GetThumbnailImage(desired_size, img_h1, null, IntPtr.Zero);

This code loads an image and then create a thumbnail.

Some of the photos taken by camera was rotated so i rotated them bo 90degrees in IrfanView. Even so thumbnails loaded in my c# app are still rotated wrong (large image is ok).

How to walk around this problem?
