Browse Source

Auto rotate thumbs #207

Ruben 4 months ago
parent
commit
3a05fb229e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/PicView.Avalonia/ImageHandling/GetThumbnails.cs

+ 2 - 0
src/PicView.Avalonia/ImageHandling/GetThumbnails.cs

@@ -34,6 +34,7 @@ public static class GetThumbnails
                 return await CreateThumbAsync(magick, path, height, fileInfo).ConfigureAwait(false);
             }
 
+            thumbnail.AutoOrient();
             return thumbnail.ToWriteableBitmap();
         }
         catch (Exception e)
@@ -107,6 +108,7 @@ public static class GetThumbnails
 
         var geometry = new MagickGeometry(0, height);
         magick.Thumbnail(geometry);
+        magick.AutoOrient();
         return magick.ToWriteableBitmap();
     }
 }