mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-10-20 18:43:58 +00:00
Add support for .kra and .cdr previews #1662
This commit is contained in:
@@ -30,7 +30,9 @@ public class Plugin : IViewer
|
||||
{
|
||||
private static readonly HashSet<string> WellKnownImageExtensions = new(
|
||||
[
|
||||
".cdr", // CorelDraw
|
||||
".fig", // Figma
|
||||
".kra", // Krita
|
||||
".xd", // AdobeXD
|
||||
".xmind", // XMind
|
||||
]);
|
||||
@@ -65,6 +67,9 @@ public class Plugin : IViewer
|
||||
_ = Task.Run(() =>
|
||||
{
|
||||
using Stream imageData = Handler.ViewImage(path);
|
||||
|
||||
if (imageData is null) return;
|
||||
|
||||
BitmapImage bitmap = imageData.ReadAsBitmapImage();
|
||||
|
||||
if (_ip is null) return;
|
||||
|
Reference in New Issue
Block a user