Add DICOM image support to ImageViewer plugin #1866

This is not a permanent support and will be adjusted to the plugin later.
This commit is contained in:
ema
2026-02-03 00:36:28 +08:00
parent 4c16a3dd72
commit 866613402a
6 changed files with 356 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public sealed partial class Plugin : IViewer, IMoreMenu
".apng", ".ari", ".arw", ".avif", ".ani",
".bay", ".bmp",
".cap", ".cr2", ".cr3", ".crw", ".cur",
".dcr", ".dcs", ".dds", ".dng", ".drf",
".dcr", ".dcs", ".dds", ".dng", ".drf", ".dcm", ".dicom",
".eip", ".emf", ".erf", ".exr",
".fff",
".gif",
@@ -107,6 +107,9 @@ public sealed partial class Plugin : IViewer, IMoreMenu
new KeyValuePair<string[], Type>([".svg"],
typeof(SvgProvider)));
#endif
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>([".dcm", ".dicom"],
typeof(DicomProvider)));
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>(["*"],
typeof(ImageMagickProvider)));