mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-19 07:04:51 +00:00
fix Exif rotation in ImageViewer; WIP on archive viewer
This commit is contained in:
@@ -14,6 +14,10 @@ namespace QuickLook.Plugin.LastResort
|
||||
|
||||
public static BitmapSource ToBitmapSource(this Bitmap source)
|
||||
{
|
||||
// BitmapSource.Create throws an exception when the image is scanned backward.
|
||||
// The Clone() will make it back scanning forward.
|
||||
source = (Bitmap) source.Clone();
|
||||
|
||||
var ip = source.GetHbitmap();
|
||||
BitmapSource bs = null;
|
||||
try
|
||||
|
Reference in New Issue
Block a user