Conditionally include Svg.Skia and SVG provider

This commit is contained in:
ema
2025-07-01 03:27:22 +08:00
parent 13bcc4b1d4
commit 667815e360
3 changed files with 12 additions and 3 deletions

View File

@@ -90,9 +90,11 @@ public class Plugin : IViewer
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>([".cur", ".ani"],
typeof(CursorProvider)));
#if USESVGSKIA
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>([".svg"],
typeof(SvgProvider)));
#endif
AnimatedImage.AnimatedImage.Providers.Add(
new KeyValuePair<string[], Type>(["*"],
typeof(ImageMagickProvider)));