fix Exif rotation in ImageViewer; WIP on archive viewer

This commit is contained in:
Paddy Xu
2017-04-28 00:08:26 +03:00
parent 7dcb0e615b
commit a5442faa12
17 changed files with 495 additions and 273 deletions

View File

@@ -24,9 +24,13 @@ namespace QuickLook.Plugin.LastResort
public void DisplayInfo(string path)
{
var icon = IconHelper.GetBitmapFromPath(path, IconHelper.IconSizeEnum.ExtraLargeIcon).ToBitmapSource();
var icon =
WindowsThumbnailProvider.GetThumbnail(path, 256, 256,
ThumbnailOptions.ScaleUp);
image.Source = icon;
image.Source = icon.ToBitmapSource();
icon.Dispose();
var name = Path.GetFileName(path);
filename.Content = string.IsNullOrEmpty(name) ? path : name;