Support .icns image #1480

This commit is contained in:
ema
2024-12-15 05:34:50 +08:00
parent cd35e05461
commit 32a1d709a5
4 changed files with 873 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public class Plugin : IViewer
".fff",
".gif",
".hdr", ".heic", ".heif",
".ico", ".icon", ".iiq",
".ico", ".icon", ".icns", ".iiq",
".jfif", ".jp2", ".jpeg", ".jpg", ".jxl",
".k25", ".kdc",
".mdc", ".mef", ".mos", ".mrw",
@@ -73,6 +73,9 @@ 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>([".icns"],
typeof(IcnsProvider)));
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>(["*"],
typeof(ImageMagickProvider)));