Beispiel #1
0
        private string GetName(IImageProcessor processor, int index)
        {
            if (processor == null)
            {
                return("Original");
            }

            return($"{processor.GetType().Name}[{index}]");
        }
Beispiel #2
0
        public ImageProcessService()
        {
            Instance = this;

            if (UseImageSharp)
            {
                processor = new ImageSharpProcessor();
            }
            else
            {
                processor = new SkiaSharpProcessor();
            }

            Logging.Log($"Initialised {processor.GetType().Name} for thumbnail processing.");
        }