Support X11 and more JPEG2000 image formats
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled

In addition, Magick Image File Format (.miff) is supported now
This commit is contained in:
ema
2025-06-25 02:44:14 +08:00
parent b96619c244
commit 2bf6387b8f
2 changed files with 6 additions and 6 deletions

View File

@@ -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)
}; };
} }

View File

@@ -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);