mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
using modified exiv2-ql (QL-Win/exiv2@cf560437bb) to detect Exif; switch from NConvert to Magick.NET
This commit is contained in:
@@ -35,13 +35,13 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx",
|
||||
".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".x3f",
|
||||
// normal
|
||||
".bmp",".heic", ".heif", ".ico", ".icon", ".jpg", ".jpeg", ".psd", ".wdp", ".tif", ".tiff", ".tga", ".webp", ".pbm",
|
||||
".pgm", ".ppm", ".pnm",
|
||||
".bmp", ".heic", ".heif", ".ico", ".icon", ".jpg", ".jpeg", ".psd", ".wdp", ".tif", ".tiff", ".tga",
|
||||
".webp", ".pbm", ".pgm", ".ppm", ".pnm", ".svg",
|
||||
// animated
|
||||
".png", ".apng", ".gif"
|
||||
};
|
||||
private ImagePanel _ip;
|
||||
private NConvert _meta;
|
||||
private MetaProvider _meta;
|
||||
|
||||
public int Priority => 0;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
typeof(NativeImageProvider)));
|
||||
AnimatedImage.AnimatedImage.Providers.Add(
|
||||
new KeyValuePair<string[], Type>(new[] {"*"},
|
||||
typeof(NConvertImageProvider)));
|
||||
typeof(ImageMagickProvider)));
|
||||
}
|
||||
|
||||
public bool CanHandle(string path)
|
||||
@@ -68,7 +68,7 @@ namespace QuickLook.Plugin.ImageViewer
|
||||
|
||||
public void Prepare(string path, ContextObject context)
|
||||
{
|
||||
_meta = new NConvert(path);
|
||||
_meta = new MetaProvider(path);
|
||||
|
||||
var size = _meta.GetSize();
|
||||
|
||||
|
Reference in New Issue
Block a user