mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 18:39:45 +00:00
Support X11 and more JPEG2000 image formats
In addition, Magick Image File Format (.miff) is supported now
This commit is contained in:
@@ -349,7 +349,7 @@ public partial class ImagePanel : UserControl, INotifyPropertyChanged, IDisposab
|
|||||||
e.TranslationBehavior = new InertiaTranslationBehavior
|
e.TranslationBehavior = new InertiaTranslationBehavior
|
||||||
{
|
{
|
||||||
InitialVelocity = e.InitialVelocities.LinearVelocity,
|
InitialVelocity = e.InitialVelocities.LinearVelocity,
|
||||||
DesiredDeceleration = 10.0 * 96.0 / (1000.0 * 1000.0)
|
DesiredDeceleration = 10d * 96d / (1000d * 1000d)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -40,9 +40,9 @@ public class Plugin : IViewer
|
|||||||
".gif",
|
".gif",
|
||||||
".hdr", ".heic", ".heif",
|
".hdr", ".heic", ".heif",
|
||||||
".ico", ".icon", ".icns", ".iiq",
|
".ico", ".icon", ".icns", ".iiq",
|
||||||
".jfif", ".jp2", ".jpeg", ".jpg", ".jxl",
|
".jfif", ".jp2", ".jpeg", ".jpg", ".jxl", ".j2k", ".jpf", ".jpx", ".jpm",
|
||||||
".k25", ".kdc",
|
".k25", ".kdc",
|
||||||
".mdc", ".mef", ".mos", ".mrw",
|
".mdc", ".mef", ".mos", ".mrw", ".mj2", ".miff",
|
||||||
".nef", ".nrw",
|
".nef", ".nrw",
|
||||||
".obm", ".orf",
|
".obm", ".orf",
|
||||||
".pbm", ".pcx", ".pef", ".pgm", ".png", ".pnm", ".ppm", ".psb", ".psd", ".ptx", ".pxn",
|
".pbm", ".pcx", ".pef", ".pgm", ".png", ".pnm", ".ppm", ".psb", ".psd", ".ptx", ".pxn",
|
||||||
@@ -51,7 +51,7 @@ public class Plugin : IViewer
|
|||||||
".sr2", ".srf", ".srw", ".svg", ".svgz",
|
".sr2", ".srf", ".srw", ".svg", ".svgz",
|
||||||
".tga", ".tif", ".tiff",
|
".tga", ".tif", ".tiff",
|
||||||
".wdp", ".webp", ".wmf",
|
".wdp", ".webp", ".wmf",
|
||||||
".x3f", ".xcf",
|
".x3f", ".xcf", ".xbm", ".xpm",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
private ImagePanel _ip;
|
private ImagePanel _ip;
|
||||||
@@ -100,7 +100,7 @@ public class Plugin : IViewer
|
|||||||
{
|
{
|
||||||
// Disabled due mishandling text file types e.g., "*.config".
|
// Disabled due mishandling text file types e.g., "*.config".
|
||||||
// Only check extension for well known image and animated image types.
|
// Only check extension for well known image and animated image types.
|
||||||
return !Directory.Exists(path) && (IsWellKnownImageExtension(path));
|
return !Directory.Exists(path) && IsWellKnownImageExtension(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Prepare(string path, ContextObject context)
|
public void Prepare(string path, ContextObject context)
|
||||||
@@ -110,7 +110,7 @@ public class Plugin : IViewer
|
|||||||
var size = _meta.GetSize();
|
var size = _meta.GetSize();
|
||||||
|
|
||||||
if (!size.IsEmpty)
|
if (!size.IsEmpty)
|
||||||
context.SetPreferredSizeFit(size, 0.8);
|
context.SetPreferredSizeFit(size, 0.8d);
|
||||||
else
|
else
|
||||||
context.PreferredSize = new Size(800, 600);
|
context.PreferredSize = new Size(800, 600);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user