Support JXR image but SDR only #1680

This commit is contained in:
ema
2025-06-30 01:49:43 +08:00
parent 856f7f137c
commit a65a453390
3 changed files with 72 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public class Plugin : IViewer
".gif",
".hdr", ".heic", ".heif",
".ico", ".icon", ".icns", ".iiq",
".jfif", ".jp2", ".jpeg", ".jpg", ".jxl", ".j2k", ".jpf", ".jpx", ".jpm",
".jfif", ".jp2", ".jpeg", ".jpg", ".jxl", ".j2k", ".jpf", ".jpx", ".jpm", ".jxr",
".k25", ".kdc",
".mdc", ".mef", ".mos", ".mrw", ".mj2", ".miff",
".nef", ".nrw",
@@ -74,6 +74,10 @@ public class Plugin : IViewer
new KeyValuePair<string[], Type>(
useColorProfile ? [] : [".bmp", ".jpg", ".jpeg", ".jfif", ".tif", ".tiff"],
typeof(NativeProvider)));
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>(
useColorProfile ? [] : [".jxr"],
typeof(WmpProvider)));
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>([".icns"],
typeof(IcnsProvider)));